3 references to AddPolicy
Microsoft.AspNetCore.RateLimiting.Tests (2)
RateLimitingMiddlewareTests.cs (1)
387
options.Value.
AddPolicy
<string, TestRateLimiterPolicy>(name);
RateLimitingOptionsTests.cs (1)
46
Assert.Throws<ArgumentException>(() => options.
AddPolicy
<string, TestRateLimiterPolicy>("myKey"));
RateLimitingSample (1)
Program.cs (1)
35
.
AddPolicy
<string, SampleRateLimiterPolicy>(helloName);