public async Task DisconnectAsync()
        {
            _log.Trace("Disconnecting");
            _cancellation.Cancel();
            await Completion.IgnoreExceptions().ConfigureAwait(false);

            _log.Trace("Disconnected");
        }
Esempio n. 2
0
 public Task CancelAsync()
 {
     _cancellation.Cancel();
     return(Completion.IgnoreExceptions());
 }
Esempio n. 3
0
 public void Dispose()
 {
     TryTerminate();
     Completion.IgnoreExceptions().GetResult();
 }