Exemplo n.º 1
0
 public ExceptionHandler(ILogger logger, ExceptionHandlerOptions options, HttpContext context, Exception error = null)
 {
     this._logger  = logger;
     this._options = options;
     this.model    = new ExceptionHandlerModel(context, options.ExceptionHandlingPath, error);
 }
Exemplo n.º 2
0
 public ExceptionHandlerMiddieware(RequestDelegate next, ILogger <ExceptionHandlerMiddieware> logger, IOptions <ExceptionHandlerOptions> options)
 {
     this.next     = next;
     this._logger  = logger;
     this._options = options.Value;
 }