Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="ex"></param>
        /// <returns></returns>
        public static bool ProcessWithNotify(Exception ex)
        {
            IExceptionProcess ep = ServiceProvider.GetService <IExceptionProcess>();

            if (ep != null)
            {
                return(ep.ProcessWithNotify(ex));
            }
            else
            {
                DoDefaultExceptionProcess(ex);
                return(true);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="ex"></param>
        /// <returns></returns>
        public static bool ProcessWithResume(Exception ex)
        {
            IExceptionProcess ep = ServiceProvider.GetService <IExceptionProcess>();

            if (ep != null)
            {
                if (SystemConfiguration.IsInDebug)
                {
                    ex.Data["Caption"] = "Debug版本异常,Release版本不显示。";
                    return(ep.ProcessWithNotify(ex));
                }
                else
                {
                    return(ep.ProcessWithResume(ex));
                }
            }
            else
            {
                DoDefaultExceptionProcess(ex);
                return(true);
            }
        }