public void Terminate_Twice() { using (var context = new ZContext()) { context.Terminate(); context.Terminate(); } }
// Close down socket and ZMQ context. private void CloseInterface() { if (socket != null) { socket.Close(); } if (context != null) { context.Terminate(); } }
public void Dispose() { foreach (var s in Sockets) { s.SetOption(ZSocketOption.LINGER, 0); s.Close(); s.Dispose(); } context.Shutdown(); context.Terminate(); context.Dispose(); }