2 implementations of IHttpContextFactory
Microsoft.AspNetCore.Hosting (1)
Http\DefaultHttpContextFactory.cs (1)
17public class DefaultHttpContextFactory : IHttpContextFactory
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Mocks\MockHttpContextFactory.cs (1)
10public class MockHttpContextFactory : IHttpContextFactory
20 references to IHttpContextFactory
InMemory.FunctionalTests (3)
ResponseTests.cs (1)
4684var mockHttpContextFactory = new Mock<IHttpContextFactory>();
src\Servers\Kestrel\shared\test\DummyApplication.cs (2)
15private readonly IHttpContextFactory _httpContextFactory; 27public DummyApplication(RequestDelegate requestDelegate, IHttpContextFactory httpContextFactory)
Microsoft.AspNetCore.Hosting (9)
GenericHost\GenericWebHostBuilder.cs (1)
79services.TryAddSingleton<IHttpContextFactory, DefaultHttpContextFactory>();
GenericHost\GenericWebHostService.cs (2)
25IHttpContextFactory httpContextFactory, 55public IHttpContextFactory HttpContextFactory { get; }
GenericHost\SlimWebHostBuilder.cs (1)
53services.TryAddSingleton<IHttpContextFactory, DefaultHttpContextFactory>();
Internal\HostingApplication.cs (2)
16private readonly IHttpContextFactory? _httpContextFactory; 26IHttpContextFactory httpContextFactory,
Internal\WebHost.cs (2)
143var httpContextFactory = _applicationServices.GetRequiredService<IHttpContextFactory>();
WebHostBuilder.cs (1)
292services.AddTransient<IHttpContextFactory, DefaultHttpContextFactory>();
Microsoft.AspNetCore.Hosting.Tests (4)
HostingApplicationDiagnosticsTests.cs (1)
1088var httpContextFactory = new Mock<IHttpContextFactory>();
HostingApplicationTests.cs (2)
74var factory = new Mock<IHttpContextFactory>(); 180private static HostingApplication CreateApplication(IHttpContextFactory httpContextFactory = null, bool useHttpContextAccessor = false,
HostingMetricsTests.cs (1)
186private static HostingApplication CreateApplication(IHttpContextFactory httpContextFactory = null, bool useHttpContextAccessor = false,
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\DummyApplication.cs (2)
15private readonly IHttpContextFactory _httpContextFactory; 27public DummyApplication(RequestDelegate requestDelegate, IHttpContextFactory httpContextFactory)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
src\Servers\Kestrel\shared\test\DummyApplication.cs (2)
15private readonly IHttpContextFactory _httpContextFactory; 27public DummyApplication(RequestDelegate requestDelegate, IHttpContextFactory httpContextFactory)