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