Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        internal static IAsyncResult InvokeAsync(Func <AsyncCallback, object, IAsyncResult> asyncAction, AsyncCallback callback, object state)
        {
            IAsyncResult asyncResult = asyncAction(BaseAsyncResult.GetDataServiceAsyncCallback(callback), state);

            return(PostInvokeAsync(asyncResult, callback));
        }