Exemplo n.º 1
0
            async Task HostHandle.Stop(CancellationToken cancellationToken)
            {
                await Task.WhenAll(_handles.Select(x => x.StopAsync(cancellationToken))).ConfigureAwait(false);

                await _host.Stop("Host Stopped", cancellationToken).ConfigureAwait(false);

                await _hostAgent.Stop("Host stopped", cancellationToken).ConfigureAwait(false);

                await _connectionTask.ConfigureAwait(false);
            }
Exemplo n.º 2
0
 Task HostHandle.Stop(CancellationToken cancellationToken)
 {
     return(_host.Stop("Stopping Host", cancellationToken));
 }