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