internal static IAsyncResult InvokeAsync(AsyncAction asyncAction, byte[] buffer, int offset, int length, AsyncCallback callback, object state) { IAsyncResult asyncResult = asyncAction(buffer, offset, length, BaseAsyncResult.GetDataServiceAsyncCallback(callback), state); return(PostInvokeAsync(asyncResult, callback)); }
internal static IAsyncResult InvokeAsync(Func <AsyncCallback, object, IAsyncResult> asyncAction, AsyncCallback callback, object state) { IAsyncResult asyncResult = asyncAction(BaseAsyncResult.GetDataServiceAsyncCallback(callback), state); return(PostInvokeAsync(asyncResult, callback)); }