7 implementations of IMemoryPoolFeature
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
20IMemoryPoolFeature,
Interop.FunctionalTests (1)
Http3\Http3RequestTests.cs (1)
1151internal class MemoryPoolFeature : IMemoryPoolFeature
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
20IMemoryPoolFeature,
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
20IMemoryPoolFeature,
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
20IMemoryPoolFeature,
src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (1)
19IMemoryPoolFeature,
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
20IMemoryPoolFeature,
74 references to IMemoryPoolFeature
http2cat (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
86var memoryPool = context.Features.Get<IMemoryPoolFeature>()?.MemoryPool;
IIS.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
86var memoryPool = context.Features.Get<IMemoryPoolFeature>()?.MemoryPool;
IIS.LongTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
86var memoryPool = context.Features.Get<IMemoryPoolFeature>()?.MemoryPool;
IIS.NewHandler.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
86var memoryPool = context.Features.Get<IMemoryPoolFeature>()?.MemoryPool;
IIS.NewShim.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
86var memoryPool = context.Features.Get<IMemoryPoolFeature>()?.MemoryPool;
IISExpress.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
86var memoryPool = context.Features.Get<IMemoryPoolFeature>()?.MemoryPool;
InMemory.FunctionalTests (10)
src\Servers\Kestrel\shared\TransportConnection.FeatureCollection.cs (1)
19MemoryPool<byte> IMemoryPoolFeature.MemoryPool => MemoryPool;
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (9)
27internal protected IMemoryPoolFeature? _currentIMemoryPoolFeature; 147else if (key == typeof(IMemoryPoolFeature)) 211else if (key == typeof(IMemoryPoolFeature)) 213_currentIMemoryPoolFeature = (IMemoryPoolFeature?)value; 277else if (typeof(TFeature) == typeof(IMemoryPoolFeature)) 279feature = Unsafe.As<IMemoryPoolFeature?, TFeature?>(ref _currentIMemoryPoolFeature); 349else if (typeof(TFeature) == typeof(IMemoryPoolFeature)) 351_currentIMemoryPoolFeature = Unsafe.As<TFeature?, IMemoryPoolFeature?>(ref feature); 411yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature);
Interop.FunctionalTests (2)
Http3\Http3RequestTests.cs (2)
1228context.Features.Set<IMemoryPoolFeature>(new MemoryPoolFeature() { MemoryPool = memoryPool }); 1240context.Features.Set<IMemoryPoolFeature>(new MemoryPoolFeature() { MemoryPool = memoryPool });
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
86var memoryPool = context.Features.Get<IMemoryPoolFeature>()?.MemoryPool;
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)
144context.Features.Get<IMemoryPoolFeature>()?.MemoryPool ?? MemoryPool<byte>.Shared);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (10)
src\Servers\Kestrel\shared\TransportConnection.FeatureCollection.cs (1)
19MemoryPool<byte> IMemoryPoolFeature.MemoryPool => MemoryPool;
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (9)
27internal protected IMemoryPoolFeature? _currentIMemoryPoolFeature; 147else if (key == typeof(IMemoryPoolFeature)) 211else if (key == typeof(IMemoryPoolFeature)) 213_currentIMemoryPoolFeature = (IMemoryPoolFeature?)value; 277else if (typeof(TFeature) == typeof(IMemoryPoolFeature)) 279feature = Unsafe.As<IMemoryPoolFeature?, TFeature?>(ref _currentIMemoryPoolFeature); 349else if (typeof(TFeature) == typeof(IMemoryPoolFeature)) 351_currentIMemoryPoolFeature = Unsafe.As<TFeature?, IMemoryPoolFeature?>(ref feature); 411yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (10)
src\Servers\Kestrel\shared\TransportConnection.FeatureCollection.cs (1)
19MemoryPool<byte> IMemoryPoolFeature.MemoryPool => MemoryPool;
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (9)
27internal protected IMemoryPoolFeature? _currentIMemoryPoolFeature; 147else if (key == typeof(IMemoryPoolFeature)) 211else if (key == typeof(IMemoryPoolFeature)) 213_currentIMemoryPoolFeature = (IMemoryPoolFeature?)value; 277else if (typeof(TFeature) == typeof(IMemoryPoolFeature)) 279feature = Unsafe.As<IMemoryPoolFeature?, TFeature?>(ref _currentIMemoryPoolFeature); 349else if (typeof(TFeature) == typeof(IMemoryPoolFeature)) 351_currentIMemoryPoolFeature = Unsafe.As<TFeature?, IMemoryPoolFeature?>(ref feature); 411yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (20)
src\Servers\Kestrel\shared\TransportConnection.FeatureCollection.cs (1)
19MemoryPool<byte> IMemoryPoolFeature.MemoryPool => MemoryPool;
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (9)
27internal protected IMemoryPoolFeature? _currentIMemoryPoolFeature; 147else if (key == typeof(IMemoryPoolFeature)) 211else if (key == typeof(IMemoryPoolFeature)) 213_currentIMemoryPoolFeature = (IMemoryPoolFeature?)value; 277else if (typeof(TFeature) == typeof(IMemoryPoolFeature)) 279feature = Unsafe.As<IMemoryPoolFeature?, TFeature?>(ref _currentIMemoryPoolFeature); 349else if (typeof(TFeature) == typeof(IMemoryPoolFeature)) 351_currentIMemoryPoolFeature = Unsafe.As<TFeature?, IMemoryPoolFeature?>(ref feature); 411yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature);
src\Servers\Kestrel\shared\TransportMultiplexedConnection.FeatureCollection.cs (1)
16MemoryPool<byte> IMemoryPoolFeature.MemoryPool => MemoryPool;
src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (9)
25internal protected IMemoryPoolFeature? _currentIMemoryPoolFeature; 130else if (key == typeof(IMemoryPoolFeature)) 170else if (key == typeof(IMemoryPoolFeature)) 172_currentIMemoryPoolFeature = (IMemoryPoolFeature?)value; 212else if (typeof(TFeature) == typeof(IMemoryPoolFeature)) 214feature = Unsafe.As<IMemoryPoolFeature?, TFeature?>(ref _currentIMemoryPoolFeature); 255else if (typeof(TFeature) == typeof(IMemoryPoolFeature)) 257_currentIMemoryPoolFeature = Unsafe.As<TFeature?, IMemoryPoolFeature?>(ref feature); 293yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (10)
src\Servers\Kestrel\shared\TransportConnection.FeatureCollection.cs (1)
19MemoryPool<byte> IMemoryPoolFeature.MemoryPool => MemoryPool;
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (9)
27internal protected IMemoryPoolFeature? _currentIMemoryPoolFeature; 147else if (key == typeof(IMemoryPoolFeature)) 211else if (key == typeof(IMemoryPoolFeature)) 213_currentIMemoryPoolFeature = (IMemoryPoolFeature?)value; 277else if (typeof(TFeature) == typeof(IMemoryPoolFeature)) 279feature = Unsafe.As<IMemoryPoolFeature?, TFeature?>(ref _currentIMemoryPoolFeature); 349else if (typeof(TFeature) == typeof(IMemoryPoolFeature)) 351_currentIMemoryPoolFeature = Unsafe.As<TFeature?, IMemoryPoolFeature?>(ref feature); 411yield return new KeyValuePair<Type, object>(typeof(IMemoryPoolFeature), _currentIMemoryPoolFeature);