Exemplo n.º 1
0
 public Task StopAsync(CancellationToken cancellationToken)
 {
     return(_depot.Stop(cancellationToken));
 }
Exemplo n.º 2
0
        public static async Task Stop(this IBusDepot depot, TimeSpan timeout)
        {
            using var cancellationTokenSource = new CancellationTokenSource(timeout);

            await depot.Stop(cancellationTokenSource.Token).ConfigureAwait(false);
        }