public async static Task Main(string[] args) { var server = new GrpcMiddlewareServer(new ConsulClient(new Uri("http://127.0.0.1:8500")), "localhost") { Services = { Greeter.BindService(new GreeterImpl()) } }; await server.Start(); Console.WriteLine("Press any key to stop the server..."); Console.ReadKey(); server.ShutdownAsync().Wait(); }
public HealthCheckImpl(GrpcMiddlewareServer serverInstance) { _ServerInstance = serverInstance; }