8 references to CreateAsyncScope
Microsoft.AspNetCore.Components (1)
OwningComponentBase.cs (1)
42_scope ??= ScopeFactory.CreateAsyncScope();
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitFactory.cs (1)
46var scope = _scopeFactory.CreateAsyncScope();
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostBuilder.cs (1)
292var scope = services.GetRequiredService<IServiceScopeFactory>().CreateAsyncScope();
Microsoft.AspNetCore.Diagnostics (1)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
147await using AsyncServiceScope? scope = _options.CreateScopeForErrors ? context.RequestServices.GetRequiredService<IServiceScopeFactory>().CreateAsyncScope() : null;
Microsoft.AspNetCore.SignalR.Core (3)
Internal\DefaultHubDispatcher.cs (3)
85await using var scope = _serviceScopeFactory.CreateAsyncScope(); 121await using var scope = _serviceScopeFactory.CreateAsyncScope(); 325var scope = _serviceScopeFactory.CreateAsyncScope();
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
78var scope = _scopeFactory.CreateAsyncScope();