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