1 write to CreateScopeForErrors
Microsoft.AspNetCore.Diagnostics (1)
ExceptionHandler\ExceptionHandlerExtensions.cs (1)
65CreateScopeForErrors = createScopeForErrors
2 references to CreateScopeForErrors
Microsoft.AspNetCore.Diagnostics (2)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (2)
146var oldScope = _options.CreateScopeForErrors ? context.RequestServices : null; 147await using AsyncServiceScope? scope = _options.CreateScopeForErrors ? context.RequestServices.GetRequiredService<IServiceScopeFactory>().CreateAsyncScope() : null;