static void Main(string[] args) { Grpc.Core.Server server = new Grpc.Core.Server { Services = { Waiter.BindService(new WaiterImpl()) }, Ports = { new ServerPort("localhost", Port, ServerCredentials.Insecure) } }; server.Start(); Console.WriteLine("Kitchen server listening on port " + Port); Console.WriteLine("Press any key to stop the server..."); Console.ReadKey(); server.ShutdownAsync().Wait(); }