public bool Start() { try { _portServer = new PortServer(ProcessRequest, _proxyServerConfiguration.ListeningIpInterface, _proxyServerConfiguration.ListeningPort); _portServer.Start("test"); } catch (Exception ex) { _logger.Error(ex.Message); return false; } return true; }
public void Stop() { _portServer.StopAll(); _portServer = null; }