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); }
public ExceptionHandlerMiddieware(RequestDelegate next, ILogger <ExceptionHandlerMiddieware> logger, IOptions <ExceptionHandlerOptions> options) { this.next = next; this._logger = logger; this._options = options.Value; }