13 references to ExceptionArgument
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (13)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
53MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPool);
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (4)
50MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPoolBlock); 107MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPoolBlock); 133MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPoolBlock); 171MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPoolBlock);
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (7)
23return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.offset)); 27return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.length)); 92public static void ThrowObjectDisposedException(ExceptionArgument argument) 100return new ArgumentOutOfRangeException(GetArgumentName(ExceptionArgument.size), $"Cannot allocate more than {maxSize} bytes in a single buffer"); 104private static ObjectDisposedException GetObjectDisposedException(ExceptionArgument argument) 109private static string GetArgumentName(ExceptionArgument argument) 111Debug.Assert(Enum.IsDefined(typeof(ExceptionArgument), argument), "The enum value is not defined, please check the ExceptionArgument Enum.");
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
58MemoryPoolThrowHelper.ThrowObjectDisposedException(MemoryPoolThrowHelper.ExceptionArgument.MemoryPool);