13 references to Format
System.Threading.RateLimiting (13)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (2)
45
throw new ArgumentException(SR.
Format
(SR.ShouldBeGreaterThan0, nameof(options.PermitLimit)), nameof(options));
49
throw new ArgumentException(SR.
Format
(SR.ShouldBeGreaterThanOrEqual0, nameof(options.QueueLimit)), nameof(options));
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (3)
59
throw new ArgumentException(SR.
Format
(SR.ShouldBeGreaterThan0, nameof(options.PermitLimit)), nameof(options));
63
throw new ArgumentException(SR.
Format
(SR.ShouldBeGreaterThanOrEqual0, nameof(options.QueueLimit)), nameof(options));
67
throw new ArgumentException(SR.
Format
(SR.ShouldBeGreaterThanTimeSpan0, nameof(options.Window)), nameof(options));
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (4)
63
throw new ArgumentException(SR.
Format
(SR.ShouldBeGreaterThan0, nameof(options.PermitLimit)), nameof(options));
67
throw new ArgumentException(SR.
Format
(SR.ShouldBeGreaterThan0, nameof(options.SegmentsPerWindow)), nameof(options));
71
throw new ArgumentException(SR.
Format
(SR.ShouldBeGreaterThanOrEqual0, nameof(options.QueueLimit)), nameof(options));
75
throw new ArgumentException(SR.
Format
(SR.ShouldBeGreaterThanTimeSpan0, nameof(options.Window)), nameof(options));
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (4)
54
throw new ArgumentException(SR.
Format
(SR.ShouldBeGreaterThan0, nameof(options.TokenLimit)), nameof(options));
58
throw new ArgumentException(SR.
Format
(SR.ShouldBeGreaterThan0, nameof(options.TokensPerPeriod)), nameof(options));
62
throw new ArgumentException(SR.
Format
(SR.ShouldBeGreaterThanOrEqual0, nameof(options.QueueLimit)), nameof(options));
66
throw new ArgumentException(SR.
Format
(SR.ShouldBeGreaterThanTimeSpan0, nameof(options.ReplenishmentPeriod)), nameof(options));