37 references to Shared
InMemory.FunctionalTests (3)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (3)
66memoryPool ?? MemoryPool<byte>.Shared, 161memoryPool: memoryPool ?? MemoryPool<byte>.Shared, 211memoryPool: memoryPool ?? MemoryPool<byte>.Shared,
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
63_backingBuffer = MemoryPool<byte>.Shared.Rent(newSize);
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
RequestHeaderBenchmarks.cs (1)
56var nativeContext = new NativeRequestContext(MemoryPool<byte>.Shared, null, 0, false);
Microsoft.AspNetCore.Server.HttpSys.Tests (13)
RequestHeaderTests.cs (13)
22var nativeContext = new NativeRequestContext(MemoryPool<byte>.Shared, null, 0, false); 63var nativeContext = new NativeRequestContext(MemoryPool<byte>.Shared, null, 0, false); 104var nativeContext = new NativeRequestContext(MemoryPool<byte>.Shared, null, 0, false); 123var nativeContext = new NativeRequestContext(MemoryPool<byte>.Shared, null, 0, false); 142var nativeContext = new NativeRequestContext(MemoryPool<byte>.Shared, null, 0, false); 189var nativeContext = new NativeRequestContext(MemoryPool<byte>.Shared, null, 0, false); 211var nativeContext = new NativeRequestContext(MemoryPool<byte>.Shared, null, 0, false); 233var nativeContext = new NativeRequestContext(MemoryPool<byte>.Shared, null, 0, false); 254var nativeContext = new NativeRequestContext(MemoryPool<byte>.Shared, null, 0, false); 274var nativeContext = new NativeRequestContext(MemoryPool<byte>.Shared, null, 0, false); 296var nativeContext = new NativeRequestContext(MemoryPool<byte>.Shared, null, 0, false); 318var nativeContext = new NativeRequestContext(MemoryPool<byte>.Shared, null, 0, false); 339var nativeContext = new NativeRequestContext(MemoryPool<byte>.Shared, null, 0, false);
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
63_backingBuffer = MemoryPool<byte>.Shared.Rent(newSize);
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\Http\Http1OutputProducer.cs (2)
760else if (sizeHint <= MemoryPool<byte>.Shared.MaxBufferSize) 764var owner = MemoryPool<byte>.Shared.Rent(sizeHint);
Middleware\HttpConnectionMiddleware.cs (1)
43memoryPoolFeature?.MemoryPool ?? System.Buffers.MemoryPool<byte>.Shared,
Middleware\HttpMultiplexedConnectionMiddleware.cs (1)
42memoryPoolFeature?.MemoryPool ?? System.Buffers.MemoryPool<byte>.Shared,
Middleware\HttpsConnectionMiddleware.cs (1)
144context.Features.Get<IMemoryPoolFeature>()?.MemoryPool ?? MemoryPool<byte>.Shared);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (3)
66memoryPool ?? MemoryPool<byte>.Shared, 161memoryPool: memoryPool ?? MemoryPool<byte>.Shared, 211memoryPool: memoryPool ?? MemoryPool<byte>.Shared,
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (3)
66memoryPool ?? MemoryPool<byte>.Shared, 161memoryPool: memoryPool ?? MemoryPool<byte>.Shared, 211memoryPool: memoryPool ?? MemoryPool<byte>.Shared,
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
63_backingBuffer = MemoryPool<byte>.Shared.Rent(newSize);
System.IO.Pipelines (6)
System\IO\Pipelines\PipeOptions.cs (2)
79Pool = pool ?? MemoryPool<byte>.Shared; 80IsDefaultSharedMemoryPool = Pool == MemoryPool<byte>.Shared;
System\IO\Pipelines\StreamPipeReaderOptions.cs (2)
36Pool = pool ?? MemoryPool<byte>.Shared; 38IsDefaultSharedMemoryPool = Pool == MemoryPool<byte>.Shared;
System\IO\Pipelines\StreamPipeWriter.cs (1)
59_pool = options.Pool == MemoryPool<byte>.Shared ? null : options.Pool;
System\IO\Pipelines\StreamPipeWriterOptions.cs (1)
21Pool = pool ?? MemoryPool<byte>.Shared;