Пример #1
0
        /// <summary>
        /// 处理远返回的程异常
        /// </summary>
        /// <param name="requestContext">请求上下文</param>
        private void ProcessRemoteException(RequestContext requestContext)
        {
            var remoteException = FastTcpCommon.SetApiActionTaskException(this.TaskSetActionTable, requestContext);

            if (remoteException != null)
            {
                var exceptionContext = new ExceptionContext(requestContext, remoteException);
                this.ExecGlobalExceptionFilters(exceptionContext);
            }
        }
Пример #2
0
        /// <summary>
        /// 处理远返回的程异常
        /// </summary>
        /// <param name="requestContext">请求上下文</param>
        private void ProcessRemoteException(RequestContext requestContext)
        {
            var remoteException = FastTcpCommon.SetApiActionTaskException(this.taskSetActionTable, requestContext);

            if (remoteException == null)
            {
                return;
            }
            var exceptionContext = new ExceptionContext(requestContext, remoteException);

            this.ExecExceptionFilters(exceptionContext);

            if (exceptionContext.ExceptionHandled == false)
            {
                throw exceptionContext.Exception;
            }
        }
Пример #3
0
        /// <summary>
        /// 处理远返回的程异常
        /// </summary>
        /// <param name="requestContext">请求上下文</param>
        private void ProcessRemoteException(RequestContext requestContext)
        {
            var remoteException = FastTcpCommon.SetApiActionTaskException(this.taskSetActionTable, requestContext);

            if (remoteException == null)
            {
                return;
            }

            var exceptionHandled = false;

            this.OnException(requestContext.Packet, remoteException, out exceptionHandled);

            if (exceptionHandled == false)
            {
                throw remoteException;
            }
        }