5 references to GetNoLimiter
Microsoft.AspNetCore.RateLimiting (1)
RateLimitingMiddleware.cs (1)
261
return RateLimitPartition.
GetNoLimiter
<DefaultKeyType>(_defaultPolicyKey);
Microsoft.AspNetCore.RateLimiting.Tests (4)
RateLimitingOptionsTests.cs (4)
16
Assert.Throws<ArgumentNullException>(() => options.AddPolicy<string>(null, context => RateLimitPartition.
GetNoLimiter
<string>("myKey")));
37
options.AddPolicy<string>("myKey", context => RateLimitPartition.
GetNoLimiter
<string>("myKey"));
38
Assert.Throws<ArgumentException>(() => options.AddPolicy<string>("myKey", context => RateLimitPartition.
GetNoLimiter
<string>("yourKey")));
45
options.AddPolicy<string>("myKey", context => RateLimitPartition.
GetNoLimiter
<string>("myKey"));