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

            return(args.Result);
        }