3 implementations of IPersistentStateFeature
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\Http1Connection.FeatureCollection.cs (1)
12IPersistentStateFeature
Internal\Http2\Http2Stream.FeatureCollection.cs (1)
17IPersistentStateFeature
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Internal\QuicStreamContext.FeatureCollection.cs (1)
11IPersistentStateFeature,
42 references to IPersistentStateFeature
Microsoft.AspNetCore.Server.Kestrel.Core (14)
Internal\Http\Http1Connection.FeatureCollection.cs (1)
31IDictionary<object, object?> IPersistentStateFeature.State
Internal\Http\HttpProtocol.Generated.cs (9)
77internal protected IPersistentStateFeature? _currentIPersistentStateFeature; 328else if (key == typeof(IPersistentStateFeature)) 480else if (key == typeof(IPersistentStateFeature)) 482_currentIPersistentStateFeature = (IPersistentStateFeature?)value; 634else if (typeof(TFeature) == typeof(IPersistentStateFeature)) 636feature = Unsafe.As<IPersistentStateFeature?, TFeature?>(ref _currentIPersistentStateFeature); 794else if (typeof(TFeature) == typeof(IPersistentStateFeature)) 796_currentIPersistentStateFeature = Unsafe.As<TFeature?, IPersistentStateFeature?>(ref feature); 944yield return new KeyValuePair<Type, object>(typeof(IPersistentStateFeature), _currentIPersistentStateFeature);
Internal\Http2\Http2Stream.FeatureCollection.cs (1)
68IDictionary<object, object?> IPersistentStateFeature.State
Internal\Http3\Http3Connection.cs (3)
612var persistentStateFeature = streamContext.Features.Get<IPersistentStateFeature>(); 613Debug.Assert(persistentStateFeature != null, $"Required {nameof(IPersistentStateFeature)} not on stream context.");
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (9)
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (9)
33internal protected IPersistentStateFeature? _currentIPersistentStateFeature; 146else if (key == typeof(IPersistentStateFeature)) 214else if (key == typeof(IPersistentStateFeature)) 216_currentIPersistentStateFeature = (IPersistentStateFeature?)value; 284else if (typeof(TFeature) == typeof(IPersistentStateFeature)) 286feature = Unsafe.As<IPersistentStateFeature?, TFeature?>(ref _currentIPersistentStateFeature); 360else if (typeof(TFeature) == typeof(IPersistentStateFeature)) 362_currentIPersistentStateFeature = Unsafe.As<TFeature?, IPersistentStateFeature?>(ref feature); 426yield return new KeyValuePair<Type, object>(typeof(IPersistentStateFeature), _currentIPersistentStateFeature);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (10)
Internal\QuicStreamContext.FeatureCollection.cs (1)
50IDictionary<object, object?> IPersistentStateFeature.State
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (9)
33internal protected IPersistentStateFeature? _currentIPersistentStateFeature; 146else if (key == typeof(IPersistentStateFeature)) 214else if (key == typeof(IPersistentStateFeature)) 216_currentIPersistentStateFeature = (IPersistentStateFeature?)value; 284else if (typeof(TFeature) == typeof(IPersistentStateFeature)) 286feature = Unsafe.As<IPersistentStateFeature?, TFeature?>(ref _currentIPersistentStateFeature); 360else if (typeof(TFeature) == typeof(IPersistentStateFeature)) 362_currentIPersistentStateFeature = Unsafe.As<TFeature?, IPersistentStateFeature?>(ref feature); 426yield return new KeyValuePair<Type, object>(typeof(IPersistentStateFeature), _currentIPersistentStateFeature);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (9)
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (9)
33internal protected IPersistentStateFeature? _currentIPersistentStateFeature; 146else if (key == typeof(IPersistentStateFeature)) 214else if (key == typeof(IPersistentStateFeature)) 216_currentIPersistentStateFeature = (IPersistentStateFeature?)value; 284else if (typeof(TFeature) == typeof(IPersistentStateFeature)) 286feature = Unsafe.As<IPersistentStateFeature?, TFeature?>(ref _currentIPersistentStateFeature); 360else if (typeof(TFeature) == typeof(IPersistentStateFeature)) 362_currentIPersistentStateFeature = Unsafe.As<TFeature?, IPersistentStateFeature?>(ref feature); 426yield return new KeyValuePair<Type, object>(typeof(IPersistentStateFeature), _currentIPersistentStateFeature);