Base:
property
Features
Microsoft.AspNetCore.Connections.BaseConnectionContext.Features
1 write to Features
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionContext.cs (1)
88Features = new FeatureCollection();
21 references to Features
Microsoft.AspNetCore.Http.Connections (13)
Internal\HttpConnectionContext.cs (12)
89Features.Set<IConnectionUserFeature>(this); 90Features.Set<IConnectionItemsFeature>(this); 91Features.Set<IConnectionIdFeature>(this); 92Features.Set<IConnectionTransportFeature>(this); 93Features.Set<IConnectionHeartbeatFeature>(this); 94Features.Set<ITransferFormatFeature>(this); 95Features.Set<IHttpContextFeature>(this); 96Features.Set<IHttpTransportFeature>(this); 97Features.Set<IConnectionInherentKeepAliveFeature>(this); 98Features.Set<IConnectionLifetimeFeature>(this); 99Features.Set<IConnectionLifetimeNotificationFeature>(this); 104Features.Set<IStatefulReconnectFeature>(this);
Internal\HttpConnectionDispatcher.cs (1)
603connection.Features.Set(context.Features.Get<IHttpConnectionFeature>());
Microsoft.AspNetCore.Http.Connections.Tests (8)
HttpConnectionDispatcherTests.cs (8)
1817var transferFormatFeature = connection.Features.Get<ITransferFormatFeature>(); 2002Assert.True(connection.Features.Get<IConnectionInherentKeepAliveFeature>().HasInherentKeepAlive); 2307Assert.Null(connection.Features.Get<IStatefulReconnectFeature>()); 2336Assert.Null(connection.Features.Get<IStatefulReconnectFeature>()); 2365Assert.NotNull(connection.Features.Get<IStatefulReconnectFeature>()); 2395var reconnectFeature = connection.Features.Get<IStatefulReconnectFeature>(); 2469var reconnectFeature = connection.Features.Get<IStatefulReconnectFeature>(); 3560var feature = Assert.IsType<HttpRequestTimeoutFeature>(context.Features.Get<IHttpContextFeature>()?.HttpContext.Features.Get<IHttpRequestTimeoutFeature>());