Exemplo n.º 1
0
 private WebHostUnhandledExceptionArgs OnUnhandledException(WebHostUnhandledExceptionArgs args)
 {
     UnhandledException?.Invoke(this, args);
     return(args);
 }
Exemplo n.º 2
0
        private IHttpActionResult ByEvent(ExceptionHandlerContext context)
        {
            WebHostUnhandledExceptionArgs args = OnUnhandledException(new WebHostUnhandledExceptionArgs(context));

            return(args.Result);
        }