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