Skip to content

Latest commit

 

History

History
33 lines (30 loc) · 804 Bytes

README.md

File metadata and controls

33 lines (30 loc) · 804 Bytes

Cluster configuration

Beetlex Webapi cluster configuration

run

dotnet FastHttpApi.ClusterConfiguration.dll

change manager password

openHttpConfig.jsonfile change

    "Manager": "admin",
    "ManagerPWD": "123456",

Cluster Management

FastHttpApi using

HttpClusterApi = new BeetleX.FastHttpApi.Clients.HttpClusterApi();
await HttpClusterApi.LoadNodeSource("default", "http://localhost:8080");

create interface proxy

    public interface IDataService
    {
        [Get(Route = "hello/{name}")]
        string Hello(string name);
    }

 DataService = HttpClusterApi.Create<IDataService>();
 var result = DataService.Hello("henry");

sample code Cluster projects