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

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