25 references to MemoryPoolThrowHelper
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (25)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (6)
53MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPool); 82MemoryPoolThrowHelper.ThrowInvalidOperationException_BlockReturnedToDisposedPool(block); 104MemoryPoolThrowHelper.ThrowInvalidOperationException_DoubleDispose(); 116MemoryPoolThrowHelper.ThrowInvalidOperationException_DisposingPoolWithActiveBlocks(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray()); 158MemoryPoolThrowHelper.ThrowInvalidOperationException_BlocksWereNotReturnedInTime(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray());
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (16)
50MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPoolBlock); 55MemoryPoolThrowHelper.ThrowInvalidOperationException_BlockIsBackedByDisposedSlab(this); 77MemoryPoolThrowHelper.ThrowInvalidOperationException_ReturningPinnedBlock(this); 82MemoryPoolThrowHelper.ThrowInvalidOperationException_BlockDoubleDispose(this); 107MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPoolBlock); 112MemoryPoolThrowHelper.ThrowInvalidOperationException_BlockIsBackedByDisposedSlab(this); 133MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPoolBlock); 138MemoryPoolThrowHelper.ThrowInvalidOperationException_BlockIsBackedByDisposedSlab(this); 143MemoryPoolThrowHelper.ThrowArgumentOutOfRangeException(_memory.Length, byteOffset); 171MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPoolBlock); 176MemoryPoolThrowHelper.ThrowInvalidOperationException_BlockIsBackedByDisposedSlab(this); 197MemoryPoolThrowHelper.ThrowInvalidOperationException_PinCountZero(this);
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (3)
53MemoryPoolThrowHelper.ThrowArgumentOutOfRangeException_BufferRequestTooLarge(_blockSize); 58MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPool);