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