Ejemplo n.º 1
0
 public void Dispose()
 {
     if (_disposed)
     {
         return;
     }
     _disposed = true;
     _listener.StopAsync(CancellationToken.None).Wait();
 }
 public Task StopAsync(CancellationToken cancellationToken)
 {
     return(_listener.StopAsync(cancellationToken));
 }