public static void Main(string[] args) { Server server = new Server { Services = { Story.BindService(new ServerImpl()) }, Ports = { new ServerPort("localhost", Port, ServerCredentials.Insecure) } }; server.Start(); Console.WriteLine("Greeter server listening on port " + Port); Thread.Sleep(Timeout.Infinite); server.ShutdownAsync().Wait(); }