コード例 #1
0
        /// <summary>
        /// Can be over-ridden in a derived class to handle the incomming RPC request, or you can
        /// subscribe to the OnExecuteAsync event.
        /// </summary>
        public virtual void ExecuteAsync(IRpcClientInfo client, AsyncContext asyncContext, byte[] input)
        {
            RpcExecuteAsyncHandler proc = _asyncHandler;

            if (proc != null)
            {
                proc(client, asyncContext, input);
            }
        }
コード例 #2
0
        /// <summary>
        /// Can be over-ridden in a derived class to handle the incomming RPC request, or you can
        /// subscribe to the OnExecuteAsync event.
        /// </summary>
        public virtual byte[] ExecuteAsync(IRpcClientInfo client, IntPtr pAsyncState, byte[] input)
        {
            RpcExecuteAsyncHandler proc = _asyncHandler;

            if (proc != null)
            {
                return(proc(client, pAsyncState, input));
            }
            return(null);
        }