/// <summary>
        /// 处理远返回的程异常
        /// </summary>
        /// <param name="requestContext">请求上下文</param>
        private void ProcessRemoteException(RequestContext requestContext)
        {
            var remoteException = FastWebSocketCommon.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 = FastWebSocketCommon.SetApiActionTaskException(this.taskSetActionTable, requestContext);

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

            this.ExecExceptionFilters(exceptionContext);

            if (exceptionContext.ExceptionHandled == false)
            {
                throw exceptionContext.Exception;
            }
        }