public PipeServer(string pipeName = "NOTools.ConsoleMonitor.PipeConnection") { _channelManager = new ChannelManager(pipeName); _channelManager.Request += new RequestEventHandler(ChannelManager_Request); Start(); }
public void Dispose() { if (null != _channelManager && _channelManager.Listen) { _channelManager.Stop(); _channelManager = null; } }