13 implementations of IFeatureCollection
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
16internal partial class TransportConnection : IFeatureCollection,
Microsoft.AspNetCore.Hosting.Tests (2)
HostingApplicationTests.cs (1)
205private class FeaturesWithContext<T> : IHostContextContainer<T>, IFeatureCollection
WebHostTests.cs (1)
1304private class ReadOnlyFeatureCollection : IFeatureCollection
Microsoft.AspNetCore.Owin (1)
OwinFeatureCollection.cs (1)
24IFeatureCollection,
Microsoft.AspNetCore.Server.HttpSys (1)
StandardFeatureCollection.cs (1)
11internal sealed class StandardFeatureCollection : IFeatureCollection
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
23internal partial class IISHttpContext : IFeatureCollection,
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.Generated.cs (1)
21internal partial class HttpProtocol : IFeatureCollection,
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
16internal partial class TransportConnection : IFeatureCollection,
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
16internal partial class TransportConnection : IFeatureCollection,
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
16internal partial class TransportConnection : IFeatureCollection,
src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (1)
16internal partial class TransportMultiplexedConnection : IFeatureCollection,
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
16internal partial class TransportConnection : IFeatureCollection,
Microsoft.Extensions.Features (1)
FeatureCollection.cs (1)
18public class FeatureCollection : IFeatureCollection
307 references to IFeatureCollection
ClientSample (1)
Tcp\TcpConnection.cs (1)
42public override IFeatureCollection Features { get; } = new FeatureCollection();
InMemory.FunctionalTests (29)
BadHttpRequestTests.cs (2)
332var featureCollection = pair.Value as IFeatureCollection;
HttpsTests.cs (4)
432IFeatureCollection bindFeatures = null; 472IFeatureCollection bindFeatures = null; 587IFeatureCollection bindFeatures = null; 633IFeatureCollection bindFeatures = null;
ResponseTests.cs (2)
4685mockHttpContextFactory.Setup(f => f.Create(It.IsAny<IFeatureCollection>())) 4686.Returns<IFeatureCollection>(fc => new DefaultHttpContext(fc));
src\Servers\Kestrel\shared\test\DummyApplication.cs (1)
33public HttpContext CreateContext(IFeatureCollection contextFeatures)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
1022public override IFeatureCollection Features { get; } 1071public override ValueTask<ConnectionContext> ConnectAsync(IFeatureCollection features = null, CancellationToken cancellationToken = default) 1188public override IFeatureCollection Features { get; }
src\Servers\Kestrel\shared\test\TestContextFactory.cs (6)
52IFeatureCollection connectionFeatures, 79IFeatureCollection connectionFeatures = null, 140IFeatureCollection connectionFeatures = null, 181IFeatureCollection connectionFeatures = null, 242public override IFeatureCollection Features { get; } 258public override ValueTask<ConnectionContext> ConnectAsync(IFeatureCollection features = null, CancellationToken cancellationToken = default)
src\Servers\Kestrel\shared\TransportConnection.cs (2)
20public IFeatureCollection? MultiplexedConnectionFeatures { get; protected set; } 36public override IFeatureCollection Features => this;
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (5)
122bool IFeatureCollection.IsReadOnly => false; 124int IFeatureCollection.Revision => _featureRevision; 126object? IFeatureCollection.this[Type key] 254TFeature? IFeatureCollection.Get<TFeature>() where TFeature : default 326void IFeatureCollection.Set<TFeature>(TFeature? feature) where TFeature : default
TestTransport\MockMultiplexedConnectionListenerFactory.cs (3)
15public Action<EndPoint, IFeatureCollection> OnBindAsync { get; set; } 17public ValueTask<IMultiplexedConnectionListener> BindAsync(EndPoint endpoint, IFeatureCollection features = null, CancellationToken cancellationToken = default) 33public ValueTask<MultiplexedConnectionContext> AcceptAsync(IFeatureCollection features = null, CancellationToken cancellationToken = default)
TestTransport\TestServer.cs (1)
116public InMemoryConnection CreateConnection(Encoding encoding = null, Action<IFeatureCollection> featuresAction = null)
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\DummyServer.cs (1)
28public IFeatureCollection Features { get; }
Microsoft.AspNetCore (2)
WebApplication.cs (2)
77internal IFeatureCollection ServerFeatures => _host.Services.GetRequiredService<IServer>().Features; 78IFeatureCollection IApplicationBuilder.ServerFeatures => ServerFeatures;
Microsoft.AspNetCore.Connections.Abstractions (6)
BaseConnectionContext.cs (1)
26public abstract IFeatureCollection Features { get; }
DefaultConnectionContext.cs (1)
75public override IFeatureCollection Features { get; }
IMulitplexedConnectionListener.cs (1)
35ValueTask<MultiplexedConnectionContext?> AcceptAsync(IFeatureCollection? features = null, CancellationToken cancellationToken = default);
IMultiplexedConnectionFactory.cs (1)
25ValueTask<MultiplexedConnectionContext> ConnectAsync(EndPoint endpoint, IFeatureCollection? features = null, CancellationToken cancellationToken = default);
IMultiplexedConnectionListenerFactory.cs (1)
23ValueTask<IMultiplexedConnectionListener> BindAsync(EndPoint endpoint, IFeatureCollection? features = null, CancellationToken cancellationToken = default);
MultiplexedConnectionContext.cs (1)
29public abstract ValueTask<ConnectionContext> ConnectAsync(IFeatureCollection? features = null, CancellationToken cancellationToken = default);
Microsoft.AspNetCore.DataProtection.Tests (1)
HostingTests.cs (1)
116public IFeatureCollection Features => new FeatureCollection();
Microsoft.AspNetCore.Hosting (8)
Builder\ApplicationBuilderFactory.cs (2)
30/// <param name="serverFeatures">An <see cref="IFeatureCollection"/> of HTTP features.</param> 32public IApplicationBuilder CreateBuilder(IFeatureCollection serverFeatures)
Builder\IApplicationBuilderFactory.cs (2)
17/// <param name="serverFeatures">An <see cref="IFeatureCollection"/> of HTTP features.</param> 19IApplicationBuilder CreateBuilder(IFeatureCollection serverFeatures);
Http\DefaultHttpContextFactory.cs (2)
44public HttpContext Create(IFeatureCollection featureCollection) 54internal void Initialize(DefaultHttpContext httpContext, IFeatureCollection featureCollection)
Internal\HostingApplication.cs (1)
43public Context CreateContext(IFeatureCollection contextFeatures)
Internal\WebHost.cs (1)
86public IFeatureCollection ServerFeatures
Microsoft.AspNetCore.Hosting.Abstractions (2)
IWebHost.cs (2)
14/// The <see cref="IFeatureCollection"/> exposed by the configured server. 16IFeatureCollection ServerFeatures { get; }
Microsoft.AspNetCore.Hosting.Server.Abstractions (2)
IHttpApplication.cs (1)
19TContext CreateContext(IFeatureCollection contextFeatures);
IServer.cs (1)
16IFeatureCollection Features { get; }
Microsoft.AspNetCore.Hosting.Tests (13)
Fakes\GenericWebHost.cs (1)
20public IFeatureCollection ServerFeatures => Services.GetRequiredService<IServer>().Features;
GenericWebHostBuilderTests.cs (1)
138public IFeatureCollection Features { get; } = new FeatureCollection();
HostingApplicationDiagnosticsTests.cs (1)
1095httpContextFactory.Setup(s => s.Create(It.IsAny<IFeatureCollection>())).Returns(context);
HostingApplicationTests.cs (4)
75factory.Setup(m => m.Create(It.IsAny<IFeatureCollection>())).Returns<IFeatureCollection>(f => new DefaultHttpContext(f)); 207public FeaturesWithContext(IFeatureCollection features) 212public IFeatureCollection Features { get; }
WebHostBuilderTests.cs (2)
1454public IFeatureCollection Features { get; } = new FeatureCollection(); 1570IFeatureCollection IServer.Features { get; } = new FeatureCollection();
WebHostTests.cs (4)
912var features = FakeServer.NewFeatureCollection(); 1234public Func<IFeatureCollection> CreateRequestFeatures { get; set; } = NewFeatureCollection; 1236public IFeatureCollection Features { get; } 1238public static IFeatureCollection NewFeatureCollection()
Microsoft.AspNetCore.Hosting.TestSites (1)
Program.cs (1)
64public IFeatureCollection Features { get; } = new FeatureCollection();
Microsoft.AspNetCore.Hosting.WindowsServices.Tests (1)
WebHostServiceTests.cs (1)
49IFeatureCollection IServer.Features { get; }
Microsoft.AspNetCore.Http (46)
Builder\ApplicationBuilder.cs (4)
87/// Gets the <see cref="IFeatureCollection"/> for server features. 92public IFeatureCollection ServerFeatures 96return GetProperty<IFeatureCollection>(ServerFeaturesKey)!; 209public IFeatureCollection ServerFeatures => _applicationBuilder.ServerFeatures;
DefaultHttpContext.cs (10)
28private static readonly Func<IFeatureCollection, IItemsFeature> _newItemsFeature = f => new ItemsFeature(); 30private static readonly Func<IFeatureCollection, IHttpAuthenticationFeature> _newHttpAuthenticationFeature = f => new HttpAuthenticationFeature(); 31private static readonly Func<IFeatureCollection, IHttpRequestLifetimeFeature> _newHttpRequestLifetimeFeature = f => new HttpRequestLifetimeFeature(); 32private static readonly Func<IFeatureCollection, ISessionFeature> _newSessionFeature = f => new DefaultSessionFeature(); 33private static readonly Func<IFeatureCollection, ISessionFeature?> _nullSessionFeature = f => null; 34private static readonly Func<IFeatureCollection, IHttpRequestIdentifierFeature> _newHttpRequestIdentifierFeature = f => new HttpRequestIdentifierFeature(); 63public DefaultHttpContext(IFeatureCollection features) 77public void Initialize(IFeatureCollection features) 139public override IFeatureCollection Features => _features.Collection ?? ContextDisposed(); 232private static IFeatureCollection ContextDisposed()
Features\QueryFeature.cs (3)
17private static readonly Func<IFeatureCollection, IHttpRequestFeature?> _nullRequestFeature = f => null; 38/// <param name="features">The <see cref="IFeatureCollection"/> to initialize.</param> 39public QueryFeature(IFeatureCollection features)
Features\RequestCookiesFeature.cs (3)
15private static readonly Func<IFeatureCollection, IHttpRequestFeature?> _nullRequestFeature = f => null; 35/// <param name="features">The <see cref="IFeatureCollection"/> to initialize.</param> 36public RequestCookiesFeature(IFeatureCollection features)
Features\ResponseCookiesFeature.cs (5)
14private readonly IFeatureCollection _features; 21/// <see cref="IFeatureCollection"/> containing all defined features, including this 24public ResponseCookiesFeature(IFeatureCollection features) 33/// <see cref="IFeatureCollection"/> containing all defined features, including this 38public ResponseCookiesFeature(IFeatureCollection features, ObjectPool<StringBuilder>? builderPool)
Internal\DefaultConnectionInfo.cs (6)
14private static readonly Func<IFeatureCollection, IHttpConnectionFeature> _newHttpConnectionFeature = f => new HttpConnectionFeature(); 15private static readonly Func<IFeatureCollection, ITlsConnectionFeature> _newTlsConnectionFeature = f => new TlsConnectionFeature(); 16private static readonly Func<IFeatureCollection, IConnectionLifetimeNotificationFeature> _newConnectionLifetime = f => new DefaultConnectionLifetimeNotificationFeature(f.Get<IHttpResponseFeature>()); 20public DefaultConnectionInfo(IFeatureCollection features) 25public void Initialize(IFeatureCollection features) 30public void Initialize(IFeatureCollection features, int revision)
Internal\DefaultHttpRequest.cs (4)
16private static readonly Func<IFeatureCollection, IHttpRequestFeature?> _nullRequestFeature = f => null; 17private static readonly Func<IFeatureCollection, IQueryFeature?> _newQueryFeature = f => new QueryFeature(f); 19private static readonly Func<IFeatureCollection, IRequestCookiesFeature> _newRequestCookiesFeature = f => new RequestCookiesFeature(f); 20private static readonly Func<IFeatureCollection, IRouteValuesFeature> _newRouteValuesFeature = f => new RouteValuesFeature();
Internal\DefaultHttpResponse.cs (3)
17private static readonly Func<IFeatureCollection, IHttpResponseFeature?> _nullResponseFeature = f => null; 18private static readonly Func<IFeatureCollection, IHttpResponseBodyFeature?> _nullResponseBodyFeature = f => null; 19private static readonly Func<IFeatureCollection, IResponseCookiesFeature?> _newResponseCookiesFeature = f => new ResponseCookiesFeature(f);
Internal\DefaultWebSocketManager.cs (5)
13private static readonly Func<IFeatureCollection, IHttpRequestFeature?> _nullRequestFeature = f => null; 14private static readonly Func<IFeatureCollection, IHttpWebSocketFeature?> _nullWebSocketFeature = f => null; 19public DefaultWebSocketManager(IFeatureCollection features) 24public void Initialize(IFeatureCollection features) 29public void Initialize(IFeatureCollection features, int revision)
Internal\ResponseCookies.cs (2)
17private readonly IFeatureCollection _features; 23internal ResponseCookies(IFeatureCollection features)
RequestFormReaderExtensions.cs (1)
32var features = request.HttpContext.Features;
Microsoft.AspNetCore.Http.Abstractions (5)
HttpContext.cs (3)
22public abstract IFeatureCollection Features { get; } 106private sealed class HttpContextFeatureDebugView(IFeatureCollection features) 108private readonly IFeatureCollection _features = features;
IApplicationBuilder.cs (1)
25IFeatureCollection ServerFeatures { get; }
IHttpContextFactory.cs (1)
18HttpContext Create(IFeatureCollection featureCollection);
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
MapPathMiddlewareTests.cs (1)
252public IFeatureCollection ServerFeatures => throw new NotImplementedException();
UsePathBaseExtensionsTests.cs (1)
54public IFeatureCollection ServerFeatures => _wrappedBuilder.ServerFeatures;
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionContext.cs (1)
164public override IFeatureCollection Features { get; }
Internal\HttpConnectionDispatcher.cs (1)
442private static bool ServerHasWebSockets(IFeatureCollection features)
Microsoft.AspNetCore.Http.Connections.Client (1)
HttpConnection.cs (1)
71public override IFeatureCollection Features { get; } = new FeatureCollection();
Microsoft.AspNetCore.Http.Features (1)
Properties\AssemblyInfo.cs (1)
7[assembly: TypeForwardedTo(typeof(IFeatureCollection))]
Microsoft.AspNetCore.Http.Tests (19)
DefaultHttpContextTests.cs (7)
324void TestAllCachedFeaturesAreNull(HttpContext context, IFeatureCollection features) 333void TestCachedFeaturesAreNull(object value, IFeatureCollection features) 352void TestAllCachedFeaturesAreSet(HttpContext context, IFeatureCollection features) 361void TestCachedFeaturesAreSet(object value, IFeatureCollection features) 377if (field.FieldType == typeof(IFeatureCollection)) 391private static void TestFeatureProperties(object value, IFeatureCollection features, IEnumerable<PropertyInfo> properties) 395if (property.PropertyType == typeof(IFeatureCollection))
ResponseCookiesTest.cs (12)
13private IFeatureCollection MakeFeatures(IHeaderDictionary headers) 28var features = MakeFeatures(headers); 61var features = MakeFeatures(headers); 82var features = MakeFeatures(headers); 104var features = MakeFeatures(headers); 121var features = MakeFeatures(headers); 151var features = MakeFeatures(headers); 179var features = MakeFeatures(headers); 211var features = MakeFeatures(headers); 229var features = MakeFeatures(headers); 251var features = MakeFeatures(headers); 267var features = MakeFeatures(headers);
Microsoft.AspNetCore.MiddlewareAnalysis (1)
AnalysisBuilder.cs (1)
43public IFeatureCollection ServerFeatures
Microsoft.AspNetCore.Mvc.Core (1)
Filters\RequestFormLimitsFilter.cs (1)
34var features = context.HttpContext.Features;
Microsoft.AspNetCore.Mvc.Core.Test (1)
Authorization\AuthorizeFilterTest.cs (1)
623httpContext.SetupGet(c => c.Features).Returns(Mock.Of<IFeatureCollection>());
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
XmlDataContractSerializerInputFormatterTest.cs (1)
746var features = new Mock<IFeatureCollection>();
XmlSerializerInputFormatterTest.cs (1)
682var features = new Mock<IFeatureCollection>();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (2)
NewtonsoftJsonInputFormatterTest.cs (1)
448var features = new Mock<IFeatureCollection>();
NewtonsoftJsonPatchInputFormatterTest.cs (1)
266var features = new Mock<IFeatureCollection>();
Microsoft.AspNetCore.OpenApi.Tests (2)
Services\OpenApiDocumentServiceTestsBase.cs (2)
338public IFeatureCollection Features => GenerateFeatures(); 345internal virtual IFeatureCollection GenerateFeatures()
Microsoft.AspNetCore.Owin.Tests (1)
OwinFeatureCollectionTests.cs (1)
11private T Get<T>(IFeatureCollection features)
Microsoft.AspNetCore.Server.HttpSys (3)
MessagePump.cs (1)
59public IFeatureCollection Features { get; }
RequestProcessing\RequestContext.FeatureCollection.cs (2)
41private IFeatureCollection? _features; 76internal IFeatureCollection Features
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
DummyApplication.cs (1)
23public HttpContext CreateContext(IFeatureCollection contextFeatures)
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (1)
DummyApplication.cs (1)
21public HttpContext CreateContext(IFeatureCollection contextFeatures)
Microsoft.AspNetCore.Server.IIS (6)
Core\IISHttpContext.FeatureCollection.cs (5)
274bool IFeatureCollection.IsReadOnly => false; 276int IFeatureCollection.Revision => _featureRevision; 310object? IFeatureCollection.this[Type key] 316TFeature? IFeatureCollection.Get<TFeature>() where TFeature : default 321void IFeatureCollection.Set<TFeature>(TFeature? instance) where TFeature : default
Core\IISHttpServer.cs (1)
38public IFeatureCollection Features { get; } = new FeatureCollection();
Microsoft.AspNetCore.Server.Kestrel.Core (21)
HttpsConfigurationService.cs (1)
205public override IFeatureCollection Features => _inner.Features;
Internal\BaseHttpConnectionContext.cs (2)
20IFeatureCollection connectionFeatures, 43public IFeatureCollection ConnectionFeatures { get; }
Internal\Http\HttpProtocol.cs (1)
105public IFeatureCollection ConnectionFeatures => _context.ConnectionFeatures;
Internal\Http\HttpProtocol.Generated.cs (5)
183bool IFeatureCollection.IsReadOnly => false; 185int IFeatureCollection.Revision => _featureRevision; 187object? IFeatureCollection.this[Type key] 491TFeature? IFeatureCollection.Get<TFeature>() where TFeature : default 651void IFeatureCollection.Set<TFeature>(TFeature? feature) where TFeature : default
Internal\Http2\Http2Connection.cs (1)
212public IFeatureCollection ConnectionFeatures => _context.ConnectionFeatures;
Internal\Http2\Http2StreamContext.cs (1)
21IFeatureCollection connectionFeatures,
Internal\Http3\Http3StreamContext.cs (1)
21IFeatureCollection connectionFeatures,
Internal\HttpConnectionContext.cs (1)
21IFeatureCollection connectionFeatures,
Internal\HttpMultiplexedConnectionContext.cs (1)
20IFeatureCollection connectionFeatures,
Internal\KestrelServerImpl.cs (1)
110public IFeatureCollection Features { get; }
Internal\WebTransport\WebTransportStream.cs (2)
22private readonly IFeatureCollection _features; 32public override IFeatureCollection Features => _features;
KestrelServer.cs (1)
43public IFeatureCollection Features => _innerKestrelServer.Features;
Middleware\LoggingMultiplexedConnectionMiddleware.cs (3)
44public override IFeatureCollection Features => _inner.Features; 67public override async ValueTask<ConnectionContext> ConnectAsync(IFeatureCollection? features = null, CancellationToken cancellationToken = default) 121public override IFeatureCollection Features => _inner.Features;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (19)
Http1\Http1ConnectionTests.cs (4)
160Assert.Equal("http", ((IFeatureCollection)_http1Connection).Get<IHttpRequestFeature>().Scheme); 187var feature = ((IFeatureCollection)_http1Connection).Get<IHttpRequestIdentifierFeature>(); 332((IFeatureCollection)_http1Connection).Get<IHttpMinRequestBodyDataRateFeature>().MinDataRate = minDataRate; 341((IFeatureCollection)_http1Connection).Get<IHttpMinResponseDataRateFeature>().MinDataRate = minDataRate;
Http1\Http1HttpProtocolFeatureCollectionTests.cs (1)
25private readonly IFeatureCollection _collection;
Http2\Http2HttpProtocolFeatureCollectionTests.cs (1)
19private readonly IFeatureCollection _http2Collection;
Http3\Http3HttpProtocolFeatureCollectionTests.cs (3)
17private readonly IFeatureCollection _http3Collection; 21var connectionFeatures = new TestConnectionFeatures().FeatureCollection; 85public IFeatureCollection FeatureCollection { get; }
KestrelServerTests.cs (2)
1031public ValueTask<IMultiplexedConnectionListener> BindAsync(EndPoint endpoint, IFeatureCollection features = null, CancellationToken cancellationToken = default) 1043public ValueTask<IMultiplexedConnectionListener> BindAsync(EndPoint endpoint, IFeatureCollection features = null, CancellationToken cancellationToken = default)
SniOptionsSelectorTests.cs (1)
941public override IFeatureCollection Features { get; } = new FeatureCollection();
src\Servers\Kestrel\shared\test\DummyApplication.cs (1)
33public HttpContext CreateContext(IFeatureCollection contextFeatures)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (6)
52IFeatureCollection connectionFeatures, 79IFeatureCollection connectionFeatures = null, 140IFeatureCollection connectionFeatures = null, 181IFeatureCollection connectionFeatures = null, 242public override IFeatureCollection Features { get; } 258public override ValueTask<ConnectionContext> ConnectAsync(IFeatureCollection features = null, CancellationToken cancellationToken = default)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (19)
HttpProtocolFeatureCollection.cs (1)
22private readonly IFeatureCollection _collection;
Mocks\MockHttpContextFactory.cs (1)
15public HttpContext Create(IFeatureCollection featureCollection)
src\Servers\Kestrel\shared\test\DummyApplication.cs (1)
33public HttpContext CreateContext(IFeatureCollection contextFeatures)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
1022public override IFeatureCollection Features { get; } 1071public override ValueTask<ConnectionContext> ConnectAsync(IFeatureCollection features = null, CancellationToken cancellationToken = default) 1188public override IFeatureCollection Features { get; }
src\Servers\Kestrel\shared\test\TestContextFactory.cs (6)
52IFeatureCollection connectionFeatures, 79IFeatureCollection connectionFeatures = null, 140IFeatureCollection connectionFeatures = null, 181IFeatureCollection connectionFeatures = null, 242public override IFeatureCollection Features { get; } 258public override ValueTask<ConnectionContext> ConnectAsync(IFeatureCollection features = null, CancellationToken cancellationToken = default)
src\Servers\Kestrel\shared\TransportConnection.cs (2)
20public IFeatureCollection? MultiplexedConnectionFeatures { get; protected set; } 36public override IFeatureCollection Features => this;
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (5)
122bool IFeatureCollection.IsReadOnly => false; 124int IFeatureCollection.Revision => _featureRevision; 126object? IFeatureCollection.this[Type key] 254TFeature? IFeatureCollection.Get<TFeature>() where TFeature : default 326void IFeatureCollection.Set<TFeature>(TFeature? feature) where TFeature : default
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (7)
src\Servers\Kestrel\shared\TransportConnection.cs (2)
20public IFeatureCollection? MultiplexedConnectionFeatures { get; protected set; } 36public override IFeatureCollection Features => this;
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (5)
122bool IFeatureCollection.IsReadOnly => false; 124int IFeatureCollection.Revision => _featureRevision; 126object? IFeatureCollection.this[Type key] 254TFeature? IFeatureCollection.Get<TFeature>() where TFeature : default 326void IFeatureCollection.Set<TFeature>(TFeature? feature) where TFeature : default
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (16)
Internal\QuicConnectionContext.cs (1)
210public override async ValueTask<ConnectionContext> ConnectAsync(IFeatureCollection? features = null, CancellationToken cancellationToken = default)
Internal\QuicConnectionListener.cs (1)
146public async ValueTask<MultiplexedConnectionContext?> AcceptAsync(IFeatureCollection? features = null, CancellationToken cancellationToken = default)
QuicTransportFactory.cs (1)
38public async ValueTask<IMultiplexedConnectionListener> BindAsync(EndPoint endpoint, IFeatureCollection? features = null, CancellationToken cancellationToken = default)
src\Servers\Kestrel\shared\TransportConnection.cs (2)
20public IFeatureCollection? MultiplexedConnectionFeatures { get; protected set; } 36public override IFeatureCollection Features => this;
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (5)
122bool IFeatureCollection.IsReadOnly => false; 124int IFeatureCollection.Revision => _featureRevision; 126object? IFeatureCollection.this[Type key] 254TFeature? IFeatureCollection.Get<TFeature>() where TFeature : default 326void IFeatureCollection.Set<TFeature>(TFeature? feature) where TFeature : default
src\Servers\Kestrel\shared\TransportMultiplexedConnection.cs (1)
30public override IFeatureCollection Features => this;
src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (5)
109bool IFeatureCollection.IsReadOnly => false; 111int IFeatureCollection.Revision => _featureRevision; 113object? IFeatureCollection.this[Type key] 193TFeature? IFeatureCollection.Get<TFeature>() where TFeature : default 236void IFeatureCollection.Set<TFeature>(TFeature? feature) where TFeature : default
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
QuicConnectionListenerTests.cs (1)
139static void AssertTlsConnectionFeature(IFeatureCollection features, X509Certificate2 testCert)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (7)
src\Servers\Kestrel\shared\TransportConnection.cs (2)
20public IFeatureCollection? MultiplexedConnectionFeatures { get; protected set; } 36public override IFeatureCollection Features => this;
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (5)
122bool IFeatureCollection.IsReadOnly => false; 124int IFeatureCollection.Revision => _featureRevision; 126object? IFeatureCollection.this[Type key] 254TFeature? IFeatureCollection.Get<TFeature>() where TFeature : default 326void IFeatureCollection.Set<TFeature>(TFeature? feature) where TFeature : default
Microsoft.AspNetCore.SignalR.Client.Tests (2)
HubConnectionTests.Reconnect.cs (1)
1177public override IFeatureCollection Features => _inner.Features;
TestConnection.cs (1)
41public override IFeatureCollection Features { get; } = new FeatureCollection();
Microsoft.AspNetCore.SignalR.Core (3)
HubCallerContext.cs (1)
37public abstract IFeatureCollection Features { get; }
HubConnectionContext.cs (1)
148public virtual IFeatureCollection Features => _connectionContext.Features;
Internal\DefaultHubCallerContext.cs (1)
34public override IFeatureCollection Features => _connection.Features;
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 (7)
ApplicationWrapper.cs (3)
11internal abstract object CreateContext(IFeatureCollection features); 29internal override object CreateContext(IFeatureCollection features) 34TContext IHttpApplication<TContext>.CreateContext(IFeatureCollection features)
TestServer.cs (4)
46public TestServer(IServiceProvider services, IFeatureCollection featureCollection, IOptions<TestServerOptions> optionsAccessor) 70public TestServer(IServiceProvider services, IFeatureCollection featureCollection) 91public TestServer(IWebHostBuilder builder, IFeatureCollection featureCollection) 129public IFeatureCollection Features { get; }
Microsoft.AspNetCore.TestHost.Tests (6)
ClientHandlerTests.cs (6)
606internal override object CreateContext(IFeatureCollection features) 611TestHostingContext IHttpApplication<TestHostingContext>.CreateContext(IFeatureCollection contextFeatures) 642Action<IFeatureCollection> _inspector; 644public InspectingApplication(Action<IFeatureCollection> inspector) 649internal override object CreateContext(IFeatureCollection features) 654TestHostingContext IHttpApplication<TestHostingContext>.CreateContext(IFeatureCollection contextFeatures)
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
331public IFeatureCollection Features { get; } = new FeatureCollection(); 3110public IFeatureCollection Features { get; } = new FeatureCollection();
Microsoft.Extensions.Features (22)
FeatureCollection.cs (3)
14/// Default implementation for <see cref="IFeatureCollection"/>. 21private readonly IFeatureCollection? _defaults; 49public FeatureCollection(IFeatureCollection defaults)
FeatureCollectionExtensions.cs (4)
10/// Extension methods for getting feature from <see cref="IFeatureCollection"/> 18/// <param name="featureCollection">The <see cref="IFeatureCollection"/>.</param> 21public static TFeature GetRequiredFeature<TFeature>(this IFeatureCollection featureCollection) 36public static object GetRequiredFeature(this IFeatureCollection featureCollection, Type key)
FeatureReference.cs (4)
29/// <param name="features">The <see cref="IFeatureCollection"/>.</param> 31public T? Fetch(IFeatureCollection features) 45/// <param name="features">The <see cref="IFeatureCollection"/> to update.</param> 48public T Update(IFeatureCollection features, T feature)
FeatureReferences.cs (11)
18/// <param name="collection">The <see cref="IFeatureCollection"/>.</param> 19public FeatureReferences(IFeatureCollection collection) 29/// <param name="collection">The <see cref="IFeatureCollection"/> to initialize with.</param> 31public void Initalize(IFeatureCollection collection) 40/// <param name="collection">The <see cref="IFeatureCollection"/> to initialize with.</param> 41/// <param name="revision">The version of the <see cref="IFeatureCollection"/>.</param> 43public void Initalize(IFeatureCollection collection, int revision) 50/// Gets the <see cref="IFeatureCollection"/>. 52public IFeatureCollection Collection { get; private set; } 143public TFeature? Fetch<TFeature>(ref TFeature? cached, Func<IFeatureCollection, TFeature?> factory) 154throw new ObjectDisposedException(nameof(Collection), nameof(IFeatureCollection) + " has been disposed.");
Microsoft.Extensions.ServiceDiscovery (1)
ServiceEndpointBuilder.cs (1)
30public IFeatureCollection Features => _features;
Microsoft.Extensions.ServiceDiscovery.Abstractions (8)
Internal\ServiceEndpointImpl.cs (2)
9internal sealed class ServiceEndpointImpl(EndPoint endPoint, IFeatureCollection? features = null) : ServiceEndpoint 13public override IFeatureCollection Features { get; } = features ?? new FeatureCollection();
IServiceEndpointBuilder.cs (1)
22IFeatureCollection Features { get; }
ServiceEndpoint.cs (2)
23public abstract IFeatureCollection Features { get; } 31public static ServiceEndpoint Create(EndPoint endPoint, IFeatureCollection? features = null) => new ServiceEndpointImpl(endPoint, features);
ServiceEndpointSource.cs (3)
25public ServiceEndpointSource(List<ServiceEndpoint>? endpoints, IChangeToken changeToken, IFeatureCollection features) 47public IFeatureCollection Features { get; } 64public IFeatureCollection Features => value.Features;