1 write to _options
Microsoft.AspNetCore.Diagnostics (1)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
43_options = options.Value;
15 references to _options
Microsoft.AspNetCore.Diagnostics (15)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (15)
51if (_options.ExceptionHandler == null) 53if (_options.ExceptionHandlingPath == null) 62_options.ExceptionHandler = _next; 141if (_options.ExceptionHandlingPath.HasValue) 143context.Request.Path = _options.ExceptionHandlingPath; 145var oldScope = _options.CreateScopeForErrors ? context.RequestServices : null; 146await using AsyncServiceScope? scope = _options.CreateScopeForErrors ? context.RequestServices.GetRequiredService<IServiceScopeFactory>().CreateAsyncScope() : null; 167context.Response.StatusCode = _options.StatusCodeSelector?.Invoke(edi.SourceException) ?? DefaultStatusCode; 184if (_options.ExceptionHandler is not null) 186await _options.ExceptionHandler!(context); 191if (_options.ExceptionHandlingPath.HasValue) 194handlerTag = _options.ExceptionHandlingPath.Value; 218if (result != ExceptionHandledType.Unhandled || _options.StatusCodeSelector != null || context.Response.StatusCode != StatusCodes.Status404NotFound || _options.AllowStatusCode404Response) 225if (_options.SuppressDiagnosticsCallback is { } suppressCallback)