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