31 references to DefaultHttpContext
InMemory.FunctionalTests (2)
ResponseTests.cs (1)
4686.Returns<IFeatureCollection>(fc => new DefaultHttpContext(fc));
src\Servers\Kestrel\shared\test\DummyApplication.cs (1)
35return _httpContextFactory?.Create(contextFeatures) ?? new DefaultHttpContext(contextFeatures);
Microsoft.AspNetCore.Hosting (1)
Http\DefaultHttpContextFactory.cs (1)
48var httpContext = new DefaultHttpContext(featureCollection);
Microsoft.AspNetCore.Hosting.Tests (2)
HostingApplicationDiagnosticsTests.cs (1)
1098var context = new DefaultHttpContext(features);
HostingApplicationTests.cs (1)
75factory.Setup(m => m.Create(It.IsAny<IFeatureCollection>())).Returns<IFeatureCollection>(f => new DefaultHttpContext(f));
Microsoft.AspNetCore.Http (1)
DefaultHttpContext.cs (1)
52: this(new FeatureCollection(DefaultFeatureCollectionSize))
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
757var newHttpContext = new DefaultHttpContext(features);
Microsoft.AspNetCore.Http.Tests (10)
DefaultHttpContextTests.cs (5)
82var context = new DefaultHttpContext(new FeatureCollection()); 110var context = new DefaultHttpContext(new FeatureCollection()); 124var context = new DefaultHttpContext(new FeatureCollection()); 138var context = new DefaultHttpContext(new FeatureCollection()); 159var context = new DefaultHttpContext(features);
Internal\DefaultHttpResponseTests.cs (5)
83var context = new DefaultHttpContext(features); 117var context = new DefaultHttpContext(features); 137var context = new DefaultHttpContext(features); 156var context = new DefaultHttpContext(features); 181var context = new DefaultHttpContext(features);
Microsoft.AspNetCore.Mvc.Core.Test (3)
Filters\MiddlewareFilterBuilderTest.cs (3)
144var httpContext = new DefaultHttpContext(features); 206var httpContext = new DefaultHttpContext(features); 274var httpContext = new DefaultHttpContext(features);
Microsoft.AspNetCore.Owin (1)
OwinExtensions.cs (1)
144context = new DefaultHttpContext(
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
RequestDecompressionMiddlewareBenchmark.cs (1)
60var context = new DefaultHttpContext(features);
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
ResponseCachingBenchmark.cs (1)
90var context = new DefaultHttpContext(features);
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\InputParserTests.cs (1)
96var rewriteContext= new RewriteContext { HttpContext = new DefaultHttpContext(features), StaticFileProvider = null, Logger = NullLogger.Instance };
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
DummyApplication.cs (1)
25return new DefaultHttpContext(contextFeatures);
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (1)
DummyApplication.cs (1)
23return new DefaultHttpContext(contextFeatures);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\DummyApplication.cs (1)
35return _httpContextFactory?.Create(contextFeatures) ?? new DefaultHttpContext(contextFeatures);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\DummyApplication.cs (1)
35return _httpContextFactory?.Create(contextFeatures) ?? new DefaultHttpContext(contextFeatures);
Microsoft.AspNetCore.TestHost (1)
HttpContextBuilder.cs (1)
248_responseTcs.TrySetResult(new DefaultHttpContext(newFeatures));
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (2)
615HttpContext = new DefaultHttpContext(contextFeatures) 659HttpContext = new DefaultHttpContext(contextFeatures)