Exemplo n.º 1
0
 /// <summary>
 /// Handles the context termination.
 /// We use a named method so we can unregister it from the event handler.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private static void ProcessExitTerminateContext(object sender, EventArgs e)
 {
     try
     {
         s_ctx.CheckDisposed();
         s_ctx.Terminate();
     }
     catch (ObjectDisposedException)
     {
     }
 }
Exemplo n.º 2
0
        private SocketBase CreateHandle(ZmqSocketType socketType)
        {
            m_ctx.CheckDisposed();

            return(m_ctx.CreateSocket(socketType));
        }