Пример #1
0
 private void Dispose(bool disposing)
 {
     if (!isDisposed)
     {
         try
         {
             clientRuntime.Dispose();
         }
         finally
         {
             isDisposed = true;
         }
     }
 }
Пример #2
0
 public void Dispose()
 {
     if (_Host != null)
     {
         _Host.Dispose();
         _Host = null;
     }
     if (_NodeBuilder != null)
     {
         _NodeBuilder.Dispose();
         _NodeBuilder = null;
     }
     if (ClientRuntime != null)
     {
         ClientRuntime.Dispose();
         ClientRuntime = null;
     }
     if (ServerRuntime != null)
     {
         ServerRuntime.Dispose();
         ServerRuntime = null;
     }
 }