Beetlex Webapi cluster configuration
dotnet FastHttpApi.ClusterConfiguration.dll
openHttpConfig.json
file
change
"Manager": "admin",
"ManagerPWD": "123456",
HttpClusterApi = new BeetleX.FastHttpApi.Clients.HttpClusterApi();
await HttpClusterApi.LoadNodeSource("default", "http://localhost:8080");
public interface IDataService
{
[Get(Route = "hello/{name}")]
string Hello(string name);
}
DataService = HttpClusterApi.Create<IDataService>();
var result = DataService.Hello("henry");
sample code Cluster projects