1 implementation of IServiceScopeFactory
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\ServiceProviderEngineScope.cs (1)
16internal sealed class ServiceProviderEngineScope : IServiceScope, IServiceProvider, IKeyedServiceProvider, IAsyncDisposable, IServiceScopeFactory
30 references to IServiceScopeFactory
Aspire.Hosting.RemoteHost (2)
JsonRpcServer.cs (2)
22private readonly IServiceScopeFactory _scopeFactory; 32IServiceScopeFactory scopeFactory,
Microsoft.AspNetCore.Components (1)
OwningComponentBase.cs (1)
21[Inject] IServiceScopeFactory ScopeFactory { get; set; } = default!;
Microsoft.AspNetCore.Components.Server (2)
Circuits\CircuitFactory.cs (2)
18private readonly IServiceScopeFactory _scopeFactory; 26IServiceScopeFactory scopeFactory,
Microsoft.AspNetCore.Diagnostics (2)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
146await using AsyncServiceScope? scope = _options.CreateScopeForErrors ? context.RequestServices.GetRequiredService<IServiceScopeFactory>().CreateAsyncScope() : null;
StatusCodePage\StatusCodePagesExtensions.cs (1)
233? context.HttpContext.RequestServices.GetRequiredService<IServiceScopeFactory>().CreateAsyncScope()
Microsoft.AspNetCore.Hosting (2)
Http\DefaultHttpContextFactory.cs (2)
21private readonly IServiceScopeFactory _serviceScopeFactory; 34_serviceScopeFactory = serviceProvider.GetRequiredService<IServiceScopeFactory>();
Microsoft.AspNetCore.Http (6)
DefaultHttpContext.cs (3)
110/// Gets or sets the <see cref="IServiceScopeFactory" /> for this instance. 113/// <see cref="IServiceScopeFactory"/> 115public IServiceScopeFactory ServiceScopeFactory { get; set; } = default!;
Features\RequestServicesFeature.cs (3)
13private readonly IServiceScopeFactory? _scopeFactory; 23/// <param name="scopeFactory">The <see cref="IServiceScopeFactory"/>.</param> 24public RequestServicesFeature(HttpContext context, IServiceScopeFactory? scopeFactory)
Microsoft.AspNetCore.SignalR.Core (3)
HubConnectionHandler.cs (1)
55IServiceScopeFactory serviceScopeFactory
Internal\DefaultHubDispatcher.cs (2)
27private readonly IServiceScopeFactory _serviceScopeFactory; 42public DefaultHubDispatcher(IServiceScopeFactory serviceScopeFactory, IHubContext<THub> hubContext, bool enableDetailedErrors,
Microsoft.Extensions.DependencyInjection (5)
ServiceLookup\CallSiteFactory.cs (1)
819serviceType == typeof(IServiceScopeFactory) ||
ServiceLookup\CallSiteValidator.cs (1)
99if (scopedCallSite.ServiceType == typeof(IServiceScopeFactory))
ServiceLookup\ThrowHelper.cs (1)
23throw new InvalidOperationException(SR.Format(SR.KeyedServiceAnyKeyUsedToResolveService, nameof(IServiceProvider), nameof(IServiceScopeFactory)));
ServiceProvider.cs (2)
64CallSiteFactory.Add(ServiceIdentifier.FromServiceType(typeof(IServiceScopeFactory)), new ConstantCallSite(typeof(IServiceScopeFactory), Root));
Microsoft.Extensions.DependencyInjection.Abstractions (3)
ServiceProviderServiceExtensions.cs (3)
104return provider.GetRequiredService<IServiceScopeFactory>().CreateScope(); 120/// <param name="serviceScopeFactory">The <see cref="IServiceScopeFactory"/> to create the scope from.</param> 122public static AsyncServiceScope CreateAsyncScope(this IServiceScopeFactory serviceScopeFactory)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
DefaultHealthCheckService.cs (2)
20private readonly IServiceScopeFactory _scopeFactory; 25IServiceScopeFactory scopeFactory,
Microsoft.Extensions.Http (2)
DefaultHttpClientFactory.cs (2)
23private readonly IServiceScopeFactory _scopeFactory; 64IServiceScopeFactory scopeFactory,