Exemple #1
0
 public static async Task OnCloseAsyncInternal(CommunicationObject communicationObject, TimeSpan timeout)
 {
     await TaskHelpers.EnsureDefaultTaskScheduler();
     await communicationObject.OnCloseAsync(timeout);
 }
        public static async Task OnCloseAsyncInternal(CommunicationObject communicationObject, TimeSpan timeout)
        {
            await TaskHelpers.EnsureDefaultTaskScheduler();

            await communicationObject.OnCloseAsync(timeout);
        }
Exemple #3
0
 public static IAsyncResult OnBeginClose(CommunicationObject communicationObject, TimeSpan timeout, AsyncCallback callback, object state)
 {
     return communicationObject.OnCloseAsync(timeout).ToApm(callback, state);
 }
 public static IAsyncResult OnBeginClose(CommunicationObject communicationObject, TimeSpan timeout, AsyncCallback callback, object state)
 {
     return(communicationObject.OnCloseAsync(timeout).ToApm(callback, state));
 }