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