Inheritance: ErrorLog
コード例 #1
0
ファイル: ErrorLogFilter.cs プロジェクト: stevenbey/elfar
        public void OnException(ExceptionContext exceptionContext)
        {
            if(Exclude(exceptionContext)) return;

            var errorLog = new MvcErrorLog(Provider.Application, exceptionContext).ToErrorLog();

            if(!(exceptionContext.Exception is ErrorLogException)) TryExecute(Provider.Save, errorLog);

            foreach(var plugin in Plugins)
            {
                TryExecute(plugin.Execute, errorLog);
            }
        }
コード例 #2
0
ファイル: ErrorLogFilter.cs プロジェクト: tiesont/elfar
        public void OnException(ExceptionContext exceptionContext)
        {
            if (Exclude(exceptionContext))
            {
                return;
            }

            var errorLog = new MvcErrorLog(Provider.Application, exceptionContext).ToErrorLog();

            if (!(exceptionContext.Exception is ErrorLogException))
            {
                TryExecute(Provider.Save, errorLog);
            }

            foreach (var plugin in Plugins)
            {
                TryExecute(plugin.Execute, errorLog);
            }
        }