Nito.AsyncEx.Interop.ApmAsyncFactory
Creation methods for tasks wrapping the Asynchronous Programming Model (APM), and APM wrapper methods around tasks.
Wraps a Task into the Begin method of an APM pattern.
public static IAsyncResult ToBegin<TResult>(Task<TResult> task, AsyncCallback callback, object state)
Wraps a Task<T> into the Begin method of an APM pattern.
Wraps a Task into the End method of an APM pattern.
Wraps a Task<T> into the End method of an APM pattern.