4 writes to ServiceScopeFactory
Microsoft.AspNetCore.Hosting (1)
Http\DefaultHttpContextFactory.cs (1)
67httpContext.ServiceScopeFactory = _serviceScopeFactory;
Microsoft.AspNetCore.Http.Tests (3)
DefaultHttpContextTests.cs (3)
197context.ServiceScopeFactory = scopeFactory; 214context.ServiceScopeFactory = scopeFactory; 241context.ServiceScopeFactory = scopeFactory;
3 references to ServiceScopeFactory
Microsoft.AspNetCore.Hosting.Tests (2)
Http\DefaultHttpContextFactoryTests.cs (2)
78Assert.NotNull(context.ServiceScopeFactory); 80Assert.Same(services.GetRequiredService<IServiceScopeFactory>(), context.ServiceScopeFactory);
Microsoft.AspNetCore.Http (1)
DefaultHttpContext.cs (1)
29private static readonly Func<DefaultHttpContext, IServiceProvidersFeature> _newServiceProvidersFeature = context => new RequestServicesFeature(context, context.ServiceScopeFactory);