protected override void OnStop() { if (_server != null) { _server.Stop(); } _server = null; }
protected override void OnStart(string[] args) { _server = new TcpServer.TcpServer(5555).Start(); }