예제 #1
0
 public void Start()
 {
     this.server = new Server
     {
         Services = { TripServices.BindService(tripServices) },
         Ports    = { { this.host, this.port, ServerCredentials.Insecure } }
     };
     server.Start();
     Logger.Info("Server started, listening on " + this.port);
     Logger.Info("Press any key to stop the server...");
     Console.ReadKey();
     server.ShutdownAsync().Wait();
 }