Exemple #1
0
        public ExceptionHandlerMiddleware(RequestDelegate next, ExceptionHandlerMiddlewareOptions options)
        {
            if (next == null)
            {
                throw new ArgumentNullException(nameof(next));
            }

            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            _next    = next;
            _options = options;
        }
Exemple #2
0
 public static IApplicationBuilder UseSimpleIdentityServerManagerExceptionHandler(
     this IApplicationBuilder applicationBuilder,
     ExceptionHandlerMiddlewareOptions options)
 {
     return(applicationBuilder.UseMiddleware <ExceptionHandlerMiddleware>(options));
 }