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