Пример #1
0
        public void OnDiagnosticsHandledException(HttpContext httpContext, Exception exception)
        {
            var message = new WebResponseExceptionMessage();

            ProcessEnd(message, httpContext);
            ProcessException(message, exception, true);

            _broker.SendMessage(message);
        }
Пример #2
0
        public void OnHostingUnhandledException(HttpContext httpContext, Exception exception)
        {
            var message = new WebResponseExceptionMessage();

            ProcessEnd(message, httpContext);
            ProcessException(message, exception, false);

            _broker.SendMessage(message);
        }