Method | Description | |
---|---|---|
AsAsyncResult ( this task, AsyncCallback callback, object state ) : IAsyncResult |
A helper method for mocking APM (classic) asynchronous methods with on TAP (modern) asynchronous methods. |
public static AsAsyncResult ( this task, AsyncCallback callback, object state ) : IAsyncResult | ||
task | this | |
callback | AsyncCallback | |
state | object | |
return | IAsyncResult |