129 references to FeatureCollection
ClientSample (1)
Tcp\TcpConnection.cs (1)
42public override IFeatureCollection Features { get; } = new FeatureCollection();
InMemory.FunctionalTests (7)
Http2\Http2TestBase.cs (1)
481var features = new FeatureCollection();
Http3\WebTransport\WebTransportTestUtilities.cs (1)
77var features = new FeatureCollection();
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
1009Features = new FeatureCollection(); 1116Features = new FeatureCollection();
src\Servers\Kestrel\shared\test\TestContextFactory.cs (3)
95connectionFeatures ?? new FeatureCollection(), 160connectionFeatures: connectionFeatures ?? new FeatureCollection(), 210connectionFeatures: connectionFeatures ?? new FeatureCollection(),
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\ComponentHubTest.cs (1)
134var feature = 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.Diagnostics.Middleware.Tests (2)
Logging\RequestHeadersEnricherTests.cs (2)
44var featureCollection = new FeatureCollection(); 230var featureCollection = new FeatureCollection();
Microsoft.AspNetCore.Hosting.Tests (12)
GenericWebHostBuilderTests.cs (1)
138public IFeatureCollection Features { get; } = new FeatureCollection();
HostingApplicationDiagnosticsTests.cs (1)
1090features = 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.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
347var features = 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)
737var 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)
44var connectionFeatures = new FeatureCollection();
Http1\Http1HttpProtocolFeatureCollectionTests.cs (1)
32var connectionFeatures = new FeatureCollection();
Http3\Http3HttpProtocolFeatureCollectionTests.cs (1)
75var featureCollection = new FeatureCollection();
HttpConnectionTests.cs (1)
27connectionFeatures: new FeatureCollection(),
HttpResponseHeadersTests.cs (1)
32var connectionFeatures = new FeatureCollection();
SniOptionsSelectorTests.cs (1)
941public override IFeatureCollection Features { get; } = new FeatureCollection();
src\Servers\Kestrel\shared\test\TestContextFactory.cs (3)
95connectionFeatures ?? new FeatureCollection(), 160connectionFeatures: connectionFeatures ?? new FeatureCollection(), 210connectionFeatures: connectionFeatures ?? new FeatureCollection(),
StartLineTests.cs (1)
535connectionFeatures: new FeatureCollection());
TestHelpers\TestInput.cs (1)
36var 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)
77var 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)
1009Features = new FeatureCollection(); 1116Features = new FeatureCollection();
src\Servers\Kestrel\shared\test\TestContextFactory.cs (3)
95connectionFeatures ?? new FeatureCollection(), 160connectionFeatures: connectionFeatures ?? new FeatureCollection(), 210connectionFeatures: 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.Testing.Tests (1)
FakesExtensionsTests.cs (1)
241var features = new FeatureCollection { [typeof(IServerAddressesFeature)] = addressesFeature };
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();
Microsoft.Extensions.ServiceDiscovery (1)
ServiceEndpointBuilder.cs (1)
16private readonly FeatureCollection _features = new FeatureCollection();
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
Internal\ServiceEndpointImpl.cs (1)
13public override IFeatureCollection Features { get; } = features ?? new FeatureCollection();