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