コード例 #1
0
        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();
        }
コード例 #2
0
 public HealthCheckImpl(GrpcMiddlewareServer serverInstance)
 {
     _ServerInstance = serverInstance;
 }