public static void Run(int port) { HelloWorldServer client = new HelloWorldServer(); HelloWorldService.Processor processor = new global::HelloWorldService.Processor(client); TServerTransport transport = new TServerSocket(port); TServer server = new TThreadPoolServer(processor, transport); Console.WriteLine("Starting the server..."); server.Serve(); transport.Close(); }
void StartServer() { HelloWorldServer.Run(SrvPort); }