コード例 #1
0
ファイル: BaseAsyncResult.cs プロジェクト: nuxleus/ODataLib
        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));
        }
コード例 #2
0
ファイル: BaseAsyncResult.cs プロジェクト: nuxleus/ODataLib
        internal static IAsyncResult InvokeAsync(Func <AsyncCallback, object, IAsyncResult> asyncAction, AsyncCallback callback, object state)
        {
            IAsyncResult asyncResult = asyncAction(BaseAsyncResult.GetDataServiceAsyncCallback(callback), state);

            return(PostInvokeAsync(asyncResult, callback));
        }