133 instantiations of 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 (2)
Builder\ApplicationBuilder.cs (1)
31public ApplicationBuilder(IServiceProvider serviceProvider) : this(serviceProvider, new FeatureCollection())
DefaultHttpContext.cs (1)
52: this(new FeatureCollection(DefaultFeatureCollectionSize))
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.Owin (1)
OwinExtensions.cs (1)
145new 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.Rewrite.Tests (1)
IISUrlRewrite\InputParserTests.cs (1)
93var features = new FeatureCollection(1);
Microsoft.AspNetCore.Server.HttpSys (2)
MessagePump.cs (1)
43Features = new FeatureCollection();
RequestProcessing\RequestContext.FeatureCollection.cs (1)
124_features = new FeatureCollection(new StandardFeatureCollection(this));
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();
114 references to FeatureCollection
InMemory.FunctionalTests (2)
Http2\Http2TestBase.cs (1)
481var features = new FeatureCollection();
Http3\WebTransport\WebTransportTestUtilities.cs (1)
77var features = new FeatureCollection();
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\ComponentHubTest.cs (1)
134var feature = new FeatureCollection();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\RequestHeadersEnricherTests.cs (2)
44var featureCollection = new FeatureCollection(); 230var featureCollection = new FeatureCollection();
Microsoft.AspNetCore.Hosting.Tests (32)
HostingApplicationDiagnosticsTests.cs (31)
58var hostingApplication1 = CreateApplication(out var features1, eventSource: hostingEventSource, meterFactory: testMeterFactory1, logger: logger); 59var hostingApplication2 = CreateApplication(out var features2, eventSource: hostingEventSource, meterFactory: testMeterFactory2, logger: logger); 155var hostingApplication = CreateApplication(out var features, eventSource: hostingEventSource, meterFactory: testMeterFactory); 201var hostingApplication = CreateApplication(out var features, activitySource: testSource, meterFactory: testMeterFactory); 220var hostingApplication = CreateApplication(out var features, meterFactory: testMeterFactory); 238var hostingApplication = CreateApplication(out var features, eventSource: hostingEventSource, meterFactory: testMeterFactory, configure: c => 297var hostingApplication = CreateApplication(out var features, eventSource: hostingEventSource, meterFactory: testMeterFactory, configure: c => 357var hostingApplication = CreateApplication(out var features, eventSource: hostingEventSource, meterFactory: testMeterFactory, configure: c => 412var hostingApplication = CreateApplication(out var features, eventSource: hostingEventSource, meterFactory: testMeterFactory, configure: c => 466var hostingApplication = CreateApplication(out var features); 477var hostingApplication = CreateApplication(out var features); 491var hostingApplication = CreateApplication(out var features, diagnosticListener: diagnosticListener, logger: logger); 529var hostingApplication = CreateApplication(out var features, diagnosticListener: diagnosticListener); 563var hostingApplication = CreateApplication(out var features, diagnosticListener: diagnosticListener); 600var hostingApplication = CreateApplication(out var features, diagnosticListener: diagnosticListener); 625var hostingApplication = CreateApplication(out var features, diagnosticListener: diagnosticListener); 650var hostingApplication = CreateApplication(out var features, diagnosticListener: diagnosticListener); 674var hostingApplication = CreateApplication(out var features, diagnosticListener: diagnosticListener); 696var hostingApplication = CreateApplication(out var features, diagnosticListener: diagnosticListener); 718var hostingApplication = CreateApplication(out var features, diagnosticListener: diagnosticListener); 749var hostingApplication = CreateApplication(out var features, diagnosticListener: diagnosticListener); 778var hostingApplication = CreateApplication(out var features, diagnosticListener: diagnosticListener); 808var hostingApplication = CreateApplication(out var features, diagnosticListener: diagnosticListener); 839var hostingApplication = CreateApplication(out var features, diagnosticListener: diagnosticListener); 876var hostingApplication = CreateApplication(out var features, diagnosticListener: diagnosticListener); 905var hostingApplication = CreateApplication(out var features, diagnosticListener: diagnosticListener); 941var hostingApplication = CreateApplication(out var features, activitySource: testSource); 985var hostingApplication = CreateApplication(out var features, diagnosticListener: diagnosticListener); 1013var hostingApplication = CreateApplication(out var features, activitySource: testSource); 1047var hostingApplication = CreateApplication(out var features, logger: loggerFactory.CreateLogger("Test"), configure: c => 1084private static HostingApplication CreateApplication(out FeatureCollection features,
WebHostTests.cs (1)
1241var features = new FeatureCollection();
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
748var features = new FeatureCollection();
Microsoft.AspNetCore.Http.Features (1)
Properties\AssemblyInfo.cs (1)
8[assembly: TypeForwardedTo(typeof(FeatureCollection))]
Microsoft.AspNetCore.Http.Tests (24)
DefaultHttpContextTests.cs (2)
152var features = new FeatureCollection(); 172var newFeatures = 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 (3)
Filters\MiddlewareFilterBuilderTest.cs (3)
142var features = new FeatureCollection(); 204var features = new FeatureCollection(); 272var features = 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.Rewrite.Tests (1)
IISUrlRewrite\InputParserTests.cs (1)
93var features = new FeatureCollection(1);
Microsoft.AspNetCore.Server.Kestrel.Core (8)
HttpsConfigurationService.cs (3)
27private Action<FeatureCollection, ListenOptions, ILogger<HttpsConnectionMiddleware>>? _populateMultiplexedTransportFeatures; 103public void PopulateMultiplexedTransportFeatures(FeatureCollection features, ListenOptions listenOptions) 144internal static void PopulateMultiplexedTransportFeaturesWorker(FeatureCollection features, ListenOptions listenOptions, ILogger<HttpsConnectionMiddleware> logger)
IHttpsConfigurationService.cs (1)
74void PopulateMultiplexedTransportFeatures(FeatureCollection features, ListenOptions listenOptions);
Internal\Http3\Http3Connection.cs (1)
737var features = new FeatureCollection();
Internal\Infrastructure\TransportManager.cs (1)
72var features = new FeatureCollection();
Internal\WebTransport\WebTransportSession.cs (1)
129var features = new FeatureCollection();
KestrelServer.cs (1)
87public void PopulateMultiplexedTransportFeatures(FeatureCollection features, ListenOptions listenOptions)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
Http1\Http1ConnectionTestsBase.cs (1)
44var connectionFeatures = new FeatureCollection();
Http1\Http1HttpProtocolFeatureCollectionTests.cs (1)
32var connectionFeatures = new FeatureCollection();
Http3\Http3HttpProtocolFeatureCollectionTests.cs (1)
75var featureCollection = new FeatureCollection();
HttpResponseHeadersTests.cs (1)
32var connectionFeatures = new FeatureCollection();
TestHelpers\TestInput.cs (1)
36var connectionFeatures = new FeatureCollection();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Http2\Http2ConnectionBenchmarkBase.cs (1)
77var featureCollection = new FeatureCollection();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (8)
QuicStreamContextTests.cs (2)
410var features = new FeatureCollection(); 451var features = new FeatureCollection();
QuicTestHelpers.cs (4)
61var features = CreateBindAsyncFeatures(clientCertificateRequired); 75var features = new FeatureCollection(); 80public static FeatureCollection CreateBindAsyncFeatures(bool clientCertificateRequired = false) 90var features = new FeatureCollection();
QuicTransportFactoryTests.cs (2)
45var features = new FeatureCollection(); 62var features = new FeatureCollection();
Microsoft.AspNetCore.TestHost (3)
HttpContextBuilder.cs (1)
232var newFeatures = new FeatureCollection();
TestServer.cs (2)
23private static FeatureCollection CreateTestFeatureCollection() 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.Extensions.Features (5)
FeatureCollection.cs (5)
27/// Initializes a new instance of <see cref="FeatureCollection"/>. 34/// Initializes a new instance of <see cref="FeatureCollection"/> with the specified initial capacity. 46/// Initializes a new instance of <see cref="FeatureCollection"/> with the specified defaults. 159private sealed class FeatureCollectionDebugView(FeatureCollection features) 161private readonly FeatureCollection _features = features;
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();