15 references to IfLessThan
Microsoft.Extensions.Diagnostics.ResourceMonitoring (15)
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)
37
MaximumRetainedCapacity = 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);