122 references to FeatureCollection
ClientSample (1)
Tcp\TcpConnection.cs (1)
42public override IFeatureCollection Features { get; } = new FeatureCollection();
InMemory.FunctionalTests (7)
Http2\Http2TestBase.cs (1)
460var features = new FeatureCollection();
Http3\WebTransport\WebTransportTestUtilities.cs (1)
77var features = new FeatureCollection();
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
1004Features = new FeatureCollection(); 1105Features = new FeatureCollection();
src\Servers\Kestrel\shared\test\TestContextFactory.cs (3)
90connectionFeatures ?? new FeatureCollection(), 154connectionFeatures: connectionFeatures ?? new FeatureCollection(), 204connectionFeatures: connectionFeatures ?? new FeatureCollection(),
Microsoft.AspNetCore.Connections.Abstractions (1)
DefaultConnectionContext.cs (1)
47Features = new FeatureCollection();
Microsoft.AspNetCore.DataProtection.Tests (2)
HostingTests.cs (2)
82mockServer.Setup(m => m.Features).Returns(new FeatureCollection()); 116public IFeatureCollection Features => new FeatureCollection();
Microsoft.AspNetCore.Hosting.Tests (12)
GenericWebHostBuilderTests.cs (1)
138public IFeatureCollection Features { get; } = new FeatureCollection();
HostingApplicationDiagnosticsTests.cs (1)
835features = new FeatureCollection();
Http\DefaultHttpContextFactoryTests.cs (6)
23var context = contextFactory.Create(new FeatureCollection()); 41var context = contextFactory.Create(new FeatureCollection()); 61var context = contextFactory.Create(new FeatureCollection()); 75var context = contextFactory.Create(new FeatureCollection()) as DefaultHttpContext; 93var context = contextFactory.Create(new FeatureCollection()) as DefaultHttpContext; 112contextFactory.Initialize(context, new FeatureCollection());
WebHostBuilderTests.cs (2)
1454public IFeatureCollection Features { get; } = new FeatureCollection(); 1570IFeatureCollection IServer.Features { get; } = new FeatureCollection();
WebHostTests.cs (2)
1228Features = new FeatureCollection(); 1241var features = new FeatureCollection();
Microsoft.AspNetCore.Hosting.TestSites (1)
Program.cs (1)
64public IFeatureCollection Features { get; } = new FeatureCollection();
Microsoft.AspNetCore.Http (1)
Builder\ApplicationBuilder.cs (1)
31public ApplicationBuilder(IServiceProvider serviceProvider) : this(serviceProvider, new FeatureCollection())
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionContext.cs (1)
88Features = new FeatureCollection();
Internal\HttpConnectionDispatcher.cs (1)
748var features = new FeatureCollection();
Microsoft.AspNetCore.Http.Connections.Client (1)
HttpConnection.cs (1)
71public override IFeatureCollection Features { get; } = new FeatureCollection();
Microsoft.AspNetCore.Http.Tests (29)
DefaultHttpContextTests.cs (7)
82var context = new DefaultHttpContext(new FeatureCollection()); 110var context = new DefaultHttpContext(new FeatureCollection()); 124var context = new DefaultHttpContext(new FeatureCollection()); 138var context = new DefaultHttpContext(new FeatureCollection()); 152var features = new FeatureCollection(); 172var newFeatures = new FeatureCollection(); 267context.Initialize(new FeatureCollection());
Features\QueryFeatureTests.cs (16)
12var features = new FeatureCollection(); 29var features = new FeatureCollection(); 49var features = new FeatureCollection(); 66var features = new FeatureCollection(); 79var features = new FeatureCollection(); 93var features = new FeatureCollection(); 108var features = new FeatureCollection(); 123var features = new FeatureCollection(); 141var features = new FeatureCollection(); 154var features = new FeatureCollection(); 168var features = new FeatureCollection(); 182var features = new FeatureCollection(); 196var features = new FeatureCollection(); 210var features = new FeatureCollection(); 225var features = new FeatureCollection(); 244var features = new FeatureCollection();
Internal\DefaultHttpResponseTests.cs (5)
71var features = new FeatureCollection(); 108var features = new FeatureCollection(); 126var features = new FeatureCollection(); 146var features = new FeatureCollection(); 177var features = new FeatureCollection();
ResponseCookiesTest.cs (1)
19var features = new FeatureCollection();
Microsoft.AspNetCore.Mvc.Core.Test (6)
Filters\MiddlewareFilterBuilderTest.cs (3)
142var features = new FeatureCollection(); 204var features = new FeatureCollection(); 272var features = new FeatureCollection();
Routing\UrlHelperTestBase.cs (3)
888httpContext.SetupGet(h => h.Features).Returns(new FeatureCollection()); 910httpContext.SetupGet(h => h.Features).Returns(new FeatureCollection()); 929httpContext.SetupGet(h => h.Features).Returns(new FeatureCollection());
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
RequestDecompressionMiddlewareBenchmark.cs (1)
55var features = new FeatureCollection();
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
ResponseCachingBenchmark.cs (1)
86var features = new FeatureCollection();
Microsoft.AspNetCore.Server.HttpSys (1)
MessagePump.cs (1)
43Features = new FeatureCollection();
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpServer.cs (1)
38public IFeatureCollection Features { get; } = new FeatureCollection();
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http3\Http3Connection.cs (1)
717var features = new FeatureCollection();
Internal\Infrastructure\TransportManager.cs (1)
72var features = new FeatureCollection();
Internal\KestrelServerImpl.cs (1)
68Features = new FeatureCollection();
Internal\WebTransport\WebTransportSession.cs (1)
129var features = new FeatureCollection();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (11)
Http1\Http1ConnectionTestsBase.cs (1)
41var connectionFeatures = new FeatureCollection();
Http1\Http1HttpProtocolFeatureCollectionTests.cs (1)
33connectionFeatures: new FeatureCollection(),
Http3\Http3HttpProtocolFeatureCollectionTests.cs (1)
75var featureCollection = new FeatureCollection();
HttpConnectionTests.cs (1)
27connectionFeatures: new FeatureCollection(),
HttpResponseHeadersTests.cs (1)
36connectionFeatures: new FeatureCollection());
SniOptionsSelectorTests.cs (1)
941public override IFeatureCollection Features { get; } = new FeatureCollection();
src\Servers\Kestrel\shared\test\TestContextFactory.cs (3)
90connectionFeatures ?? new FeatureCollection(), 154connectionFeatures: connectionFeatures ?? new FeatureCollection(), 204connectionFeatures: connectionFeatures ?? new FeatureCollection(),
StartLineTests.cs (1)
535connectionFeatures: new FeatureCollection());
TestHelpers\TestInput.cs (1)
33var connectionFeatures = new FeatureCollection();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (15)
HeaderCollectionBenchmark.cs (1)
341connectionFeatures: new FeatureCollection());
Http1ConnectionBenchmark.cs (1)
44connectionFeatures: new FeatureCollection());
Http1ConnectionParsingOverheadBenchmark.cs (1)
40connectionFeatures: new FeatureCollection());
Http1LargeWritingBenchmark.cs (1)
82connectionFeatures: new FeatureCollection());
Http1ReadingBenchmark.cs (1)
111connectionFeatures: new FeatureCollection());
Http1WritingBenchmark.cs (1)
116connectionFeatures: new FeatureCollection());
Http2\Http2ConnectionBenchmarkBase.cs (1)
76var featureCollection = new FeatureCollection();
HttpProtocolFeatureCollection.cs (1)
243connectionFeatures: new FeatureCollection());
RequestParsingBenchmark.cs (1)
41connectionFeatures: new FeatureCollection(),
ResponseHeaderCollectionBenchmark.cs (1)
189connectionFeatures: new FeatureCollection());
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
1004Features = new FeatureCollection(); 1105Features = new FeatureCollection();
src\Servers\Kestrel\shared\test\TestContextFactory.cs (3)
90connectionFeatures ?? new FeatureCollection(), 154connectionFeatures: connectionFeatures ?? new FeatureCollection(), 204connectionFeatures: connectionFeatures ?? new FeatureCollection(),
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (6)
QuicStreamContextTests.cs (2)
410var features = new FeatureCollection(); 451var features = new FeatureCollection();
QuicTestHelpers.cs (2)
75var features = new FeatureCollection(); 90var features = new FeatureCollection();
QuicTransportFactoryTests.cs (2)
45var features = new FeatureCollection(); 62var features = new FeatureCollection();
Microsoft.AspNetCore.SignalR.Client.Tests (1)
TestConnection.cs (1)
41public override IFeatureCollection Features { get; } = new FeatureCollection();
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Shared\TestConnectionContext.cs (1)
13public override IFeatureCollection Features { get; } = new FeatureCollection();
Microsoft.AspNetCore.SignalR.Tests (1)
Internal\MessageBufferTests.cs (1)
501public override IFeatureCollection Features { get; } = new FeatureCollection();
Microsoft.AspNetCore.TestHost (2)
HttpContextBuilder.cs (1)
232var newFeatures = new FeatureCollection();
TestServer.cs (1)
25var features = new FeatureCollection();
Microsoft.AspNetCore.TestHost.Tests (1)
TestServerTests.cs (1)
272var featureCollection = new FeatureCollection();
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
331public IFeatureCollection Features { get; } = new FeatureCollection(); 3110public IFeatureCollection Features { get; } = new FeatureCollection();
Microsoft.Extensions.Features.Tests (11)
FeatureCollectionExtensionsTests.cs (2)
15var features = new FeatureCollection(); 31var features = new FeatureCollection();
FeatureCollectionTests.cs (9)
14var interfaces = new FeatureCollection(); 26var interfaces = new FeatureCollection(); 37var interfaces = new FeatureCollection(); 52var interfaces = new FeatureCollection(); 62var interfaces = new FeatureCollection(); 70var interfaces = new FeatureCollection(); 80var interfaces = new FeatureCollection(); 90var interfaces = new FeatureCollection(); 100var interfaces = new FeatureCollection();