public void Dispose() { if (_ipcBinaryHost != null) { _ipcBinaryHost.Dispose(); _ipcBinaryHost = null; } if (_tcpBinaryHost != null) { _tcpBinaryHost.Dispose(); _tcpBinaryHost = null; } if (_tcpCustomHost != null) { _tcpCustomHost.Dispose(); _tcpCustomHost = null; } if (_tcpDuplexHost != null) { _tcpDuplexHost.Dispose(); _tcpDuplexHost = null; } if (_httpCustomHost != null) { _httpCustomHost.Dispose(); _httpCustomHost = null; } }
public void Dispose() { if (_host != null) { _host.Dispose(); _host = null; } }
private void Dispose(bool disposing) { if (disposing && host != null) { host.Dispose(); host = null; } }
// tcpex://localhost:9096/WDAltMonitor static void Main(string[] args) { StartComponent(); Console.WriteLine("Press Enter to terminate Zyan server."); Console.ReadLine(); Console.WriteLine("Terminating Zyan server..."); _znHost.UnregisterComponent(_zsName); _znHost.Dispose(); Console.WriteLine("Zyan server terminated."); }
private void StopComponent() { _znHost.UnregisterComponent(_zsName); _znHost.Dispose(); _znHost = null; }