Esempio n. 1
0
 public ApiExceptionHandlerMiddleware(RequestDelegate next,
                                      ILogger <ApiExceptionHandlerMiddleware> logger,
                                      ApiExceptionHandlerOptions options)
 {
     _next    = next;
     _logger  = logger;
     _options = options;
 }
Esempio n. 2
0
 public static IApplicationBuilder UseApiExceptionHandler(this IApplicationBuilder source, ApiExceptionHandlerOptions options) =>
 source.UseMiddleware <ApiExceptionHandlerMiddleware>(options);