protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state)
 {
     return(_innerCommunicationObject.OnCloseAsync(timeout).ToApm(callback, state));
 }
Пример #2
0
 protected override Task OnCloseAsync(CancellationToken token)
 {
     return(_innerCommunicationObject.OnCloseAsync(DefaultCloseTimeout));
 }
Пример #3
0
 protected override void OnClose(TimeSpan timeout)
 {
     _innerCommunicationObject.OnCloseAsync(timeout).GetAwaiter().GetResult();
 }