17 references to IfLessThan
Microsoft.Extensions.Diagnostics.ResourceMonitoring (17)
CircularBuffer.cs (1)
17_ = Throw.IfLessThan(size, 1);
src\Shared\BufferWriterPool\BufferWriter.cs (2)
74_ = Throw.IfLessThan(value, 0); 189_ = Throw.IfLessThan(sizeHint, 0);
src\Shared\BufferWriterPool\BufferWriterPool.cs (2)
28_ = Throw.IfLessThan(maxCapacity, 1); 29_ = Throw.IfLessThan(maxBufferWriterCapacity, 1);
src\Shared\BufferWriterPool\BufferWriterPooledObjectPolicy.cs (1)
37MaximumRetainedCapacity = Throw.IfLessThan(maximumRetainedCapacity, 1);
src\Shared\Pools\PoolFactory.cs (9)
42_ = Throw.IfLessThan(maxCapacity, 1); 58_ = Throw.IfLessThan(maxCapacity, 1); 75_ = Throw.IfLessThan(maxCapacity, 1); 88_ = Throw.IfLessThan(maxCapacity, 1); 89_ = Throw.IfLessThan(maxStringBuilderCapacity, 1); 116_ = Throw.IfLessThan(maxCapacity, 1); 136_ = Throw.IfLessThan(maxCapacity, 1); 155_ = Throw.IfLessThan(maxCapacity, 1); 177_ = Throw.IfLessThan(maxCapacity, 1);
src\Shared\StringSplit\StringRange.cs (2)
25_ = Throw.IfLessThan(index, 0); 26_ = Throw.IfLessThan(count, 0);