5 implementations of IConnectionLifetimeNotificationFeature
Microsoft.AspNetCore.Http (1)
Features\DefaultConnectionLifetimeNotificationFeature.cs (1)
11internal sealed class DefaultConnectionLifetimeNotificationFeature : IConnectionLifetimeNotificationFeature
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionContext.cs (1)
34IConnectionLifetimeNotificationFeature,
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
43IConnectionLifetimeNotificationFeature,
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
41IConnectionLifetimeNotificationFeature,
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\KestrelConnection.cs (1)
10internal abstract class KestrelConnection : IConnectionHeartbeatFeature, IConnectionCompleteFeature, IConnectionLifetimeNotificationFeature, IConnectionMetricsContextFeature
21 references to IConnectionLifetimeNotificationFeature
Microsoft.AspNetCore.Http (4)
Features\DefaultConnectionLifetimeNotificationFeature.cs (1)
9/// Default implementation of <see cref="IConnectionLifetimeNotificationFeature"/>.
Internal\DefaultConnectionInfo.cs (3)
16private static readonly Func<IFeatureCollection, IConnectionLifetimeNotificationFeature> _newConnectionLifetime = f => new DefaultConnectionLifetimeNotificationFeature(f.Get<IHttpResponseFeature>()); 46private IConnectionLifetimeNotificationFeature ConnectionLifetime => 100public IConnectionLifetimeNotificationFeature? ConnectionLifetime;
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionContext.cs (1)
113Features.Set<IConnectionLifetimeNotificationFeature>(this);
Microsoft.AspNetCore.Server.HttpSys (4)
RequestProcessing\RequestContext.FeatureCollection.cs (3)
440internal IConnectionLifetimeNotificationFeature? GetConnectionLifetimeNotificationFeature() 658CancellationToken IConnectionLifetimeNotificationFeature.ConnectionClosedRequested { get; set; } 787void IConnectionLifetimeNotificationFeature.RequestClose()
StandardFeatureCollection.cs (1)
33{ typeof(IConnectionLifetimeNotificationFeature), ctx => ctx.GetConnectionLifetimeNotificationFeature() },
Microsoft.AspNetCore.Server.IIS (3)
Core\IISHttpContext.FeatureCollection.cs (2)
516CancellationToken IConnectionLifetimeNotificationFeature.ConnectionClosedRequested { get; set; } 551void IConnectionLifetimeNotificationFeature.RequestClose()
Core\IISHttpContext.Features.cs (1)
32private static readonly Type IConnectionLifetimeNotificationFeature = typeof(global::Microsoft.AspNetCore.Connections.Features.IConnectionLifetimeNotificationFeature);
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Internal\Http2\Http2Connection.cs (1)
1127_context.ConnectionFeatures.Get<IConnectionLifetimeNotificationFeature>()?.RequestClose();
Internal\Http3\Http3ControlStream.cs (1)
434_context.ConnectionContext.Features.Get<IConnectionLifetimeNotificationFeature>()?.RequestClose();
Internal\HttpConnection.cs (3)
101var connectionLifetimeNotificationFeature = _context.ConnectionFeatures.Get<IConnectionLifetimeNotificationFeature>(); 106Debug.Assert(connectionLifetimeNotificationFeature != null, nameof(IConnectionLifetimeNotificationFeature) + " is missing!");
Internal\Infrastructure\KestrelConnectionOfT.cs (1)
29connectionContext.Features.Set<IConnectionLifetimeNotificationFeature>(this);
Internal\TlsConnectionFeature.cs (1)
178_context.Features.Get<IConnectionLifetimeNotificationFeature>()?.RequestClose();
Microsoft.AspNetCore.SignalR.Core (2)
HubConnectionContext.cs (2)
90if (connectionContext.Features.Get<IConnectionLifetimeNotificationFeature>() is IConnectionLifetimeNotificationFeature lifetimeNotification)