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