Пример #1
0
 public GlobalExceptionHandler(RequestDelegate next, GlobalExceptionHandlerStrings strings)
 {
     _next    = next;
     _strings = strings;
 }
Пример #2
0
 public static IApplicationBuilder UseGlobalExceptionHandler(this IApplicationBuilder builder, GlobalExceptionHandlerStrings strings)
 {
     return(builder.UseMiddleware <GlobalExceptionHandler>(strings));
 }
Пример #3
0
 public GlobalExceptionHandler(RequestDelegate next)
 {
     _next    = next;
     _strings = new GlobalExceptionHandlerStrings();
 }