2 implementations of IMemoryPoolFeature
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
20
IMemoryPoolFeature
,
src\aspnetcore\src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (1)
19
IMemoryPoolFeature
,
25 references to IMemoryPoolFeature
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Middleware\HttpConnectionMiddleware.cs (2)
30
var
memoryPoolFeature = connectionContext.Features.Get<
IMemoryPoolFeature
>();
Middleware\HttpMultiplexedConnectionMiddleware.cs (2)
30
var
memoryPoolFeature = connectionContext.Features.Get<
IMemoryPoolFeature
>();
Middleware\HttpsConnectionMiddleware.cs (1)
155
context.Features.Get<
IMemoryPoolFeature
>()?.MemoryPool ?? MemoryPool<byte>.Shared);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (20)
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.FeatureCollection.cs (1)
20
MemoryPool<byte>
IMemoryPoolFeature
.MemoryPool => MemoryPool;
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.Generated.cs (9)
28
internal protected
IMemoryPoolFeature
? _currentIMemoryPoolFeature;
150
else if (key == typeof(
IMemoryPoolFeature
))
218
else if (key == typeof(
IMemoryPoolFeature
))
220
_currentIMemoryPoolFeature = (
IMemoryPoolFeature
?)value;
288
else if (typeof(TFeature) == typeof(
IMemoryPoolFeature
))
290
feature = Unsafe.As<
IMemoryPoolFeature
?, TFeature?>(ref _currentIMemoryPoolFeature);
364
else if (typeof(TFeature) == typeof(
IMemoryPoolFeature
))
366
_currentIMemoryPoolFeature = Unsafe.As<TFeature?,
IMemoryPoolFeature
?>(ref feature);
430
yield return new KeyValuePair<Type, object>(typeof(
IMemoryPoolFeature
), _currentIMemoryPoolFeature);
src\aspnetcore\src\Servers\Kestrel\shared\TransportMultiplexedConnection.FeatureCollection.cs (1)
17
MemoryPool<byte>
IMemoryPoolFeature
.MemoryPool => MemoryPool;
src\aspnetcore\src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (9)
26
internal protected
IMemoryPoolFeature
? _currentIMemoryPoolFeature;
133
else if (key == typeof(
IMemoryPoolFeature
))
177
else if (key == typeof(
IMemoryPoolFeature
))
179
_currentIMemoryPoolFeature = (
IMemoryPoolFeature
?)value;
223
else if (typeof(TFeature) == typeof(
IMemoryPoolFeature
))
225
feature = Unsafe.As<
IMemoryPoolFeature
?, TFeature?>(ref _currentIMemoryPoolFeature);
270
else if (typeof(TFeature) == typeof(
IMemoryPoolFeature
))
272
_currentIMemoryPoolFeature = Unsafe.As<TFeature?,
IMemoryPoolFeature
?>(ref feature);
312
yield return new KeyValuePair<Type, object>(typeof(
IMemoryPoolFeature
), _currentIMemoryPoolFeature);