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); }
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)); }