Example #1
0
 /// <inheritdoc/>
 public void Dispose()
 {
     if (_server != null)
     {
         _server.ShutdownAsync().Wait();
     }
 }
Example #2
0
 /// <summary>
 /// Disposes resources.
 /// </summary>
 /// <param name="disposeManagedResources">Whether to dispose managed resources.</param>
 protected virtual void Dispose(bool disposeManagedResources)
 {
     if (_disposed)
     {
         return;
     }
     _server.ShutdownAsync().GetAwaiter().GetResult();
     _disposed = true;
 }
Example #3
0
 /// <inheritdoc/>
 public void Dispose()
 {
     _server?.ShutdownAsync().Wait();
 }