1 instantiation of PinnedBlockMemoryPoolFactory
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
PinnedBlockMemoryPoolFactoryTests.cs (1)
127return new PinnedBlockMemoryPoolFactory(
21 references to PinnedBlockMemoryPoolFactory
Microsoft.AspNetCore.Server.Kestrel (4)
WebHostBuilderKestrelExtensions.cs (4)
89services.AddSingleton<PinnedBlockMemoryPoolFactory>(); 91services.TryAddEnumerable(ServiceDescriptor.Singleton<IHeartbeatHandler, PinnedBlockMemoryPoolFactory>(sp => sp.GetRequiredService<PinnedBlockMemoryPoolFactory>())); 92services.AddSingleton<IMemoryPoolFactory<byte>>(sp => sp.GetRequiredService<PinnedBlockMemoryPoolFactory>());
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\PinnedBlockMemoryPoolFactory.cs (1)
20public PinnedBlockMemoryPoolFactory(MemoryPoolMetrics metrics, TimeProvider? timeProvider = null, ILogger<PinnedBlockMemoryPoolFactory>? logger = null)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (7)
PinnedBlockMemoryPoolFactoryTests.cs (7)
19var factory = CreateMemoryPoolFactory(); 29var factory = CreateMemoryPoolFactory(); 38var factory = CreateMemoryPoolFactory(); 50var factory = CreateMemoryPoolFactory(); 54var dict = (ConcurrentDictionary<PinnedBlockMemoryPool, nuint>)(typeof(PinnedBlockMemoryPoolFactory) 67var factory = CreateMemoryPoolFactory(timeProvider); 125private static PinnedBlockMemoryPoolFactory CreateMemoryPoolFactory(TimeProvider timeProvider = null)
Microsoft.AspNetCore.Server.Kestrel.Tests (9)
WebHostBuilderKestrelExtensionsTests.cs (9)
161Assert.Equal(typeof(PinnedBlockMemoryPoolFactory), handler.GetType()); 179var memoryPoolFactory = Assert.IsType<PinnedBlockMemoryPoolFactory>(host.Services.GetRequiredService<IMemoryPoolFactory<byte>>()); 196memoryPoolFactory = Assert.IsType<PinnedBlockMemoryPoolFactory>(host.Services.GetRequiredService<IMemoryPoolFactory<byte>>()); 216Assert.IsNotType<PinnedBlockMemoryPoolFactory>(memoryPoolFactory); 237var memoryPoolFactory = Assert.IsType<PinnedBlockMemoryPoolFactory>(host.Services.GetRequiredService<IMemoryPoolFactory<byte>>()); 254memoryPoolFactory = Assert.IsType<PinnedBlockMemoryPoolFactory>(host.Services.GetRequiredService<IMemoryPoolFactory<byte>>()); 275Assert.IsNotType<PinnedBlockMemoryPoolFactory>(memoryPoolFactory);