15 writes to GlobalLimiter
Microsoft.AspNetCore.RateLimiting.Tests (14)
RateLimitingApplicationBuilderExtensionsTests.cs (2)
44
options.
GlobalLimiter
= new TestPartitionedRateLimiter<HttpContext>(new TestRateLimiter(false));
50
options.
GlobalLimiter
= new TestPartitionedRateLimiter<HttpContext>(new TestRateLimiter(false));
RateLimitingMetricsTests.cs (3)
31
options.Value.
GlobalLimiter
= new TestPartitionedRateLimiter<HttpContext>(new TestRateLimiter(false));
71
options.Value.
GlobalLimiter
= new TestPartitionedRateLimiter<HttpContext>(new TestRateLimiter(true));
130
options.Value.
GlobalLimiter
= new TestPartitionedRateLimiter<HttpContext>(new TestRateLimiter(true));
RateLimitingMiddlewareTests.cs (9)
22
options.Value.
GlobalLimiter
= new TestPartitionedRateLimiter<HttpContext>();
65
options.Value.
GlobalLimiter
= new TestPartitionedRateLimiter<HttpContext>(new TestRateLimiter(true));
90
options.Value.
GlobalLimiter
= new TestPartitionedRateLimiter<HttpContext>(new TestRateLimiter(false));
115
options.Value.
GlobalLimiter
= new TestPartitionedRateLimiter<HttpContext>(new TestRateLimiter(false));
144
options.Value.
GlobalLimiter
= new TestPartitionedRateLimiter<HttpContext>(new TestRateLimiter(false));
293
options.Value.
GlobalLimiter
= new TestPartitionedRateLimiter<HttpContext>(new TestRateLimiter(false));
325
options.Value.
GlobalLimiter
= new TestPartitionedRateLimiter<HttpContext>(new TestRateLimiter(true));
357
options.Value.
GlobalLimiter
= new TestPartitionedRateLimiter<HttpContext>(new TestRateLimiter(false));
524
options.Value.
GlobalLimiter
= new TestPartitionedRateLimiter<HttpContext>(new TestRateLimiter(false));
RateLimitingSample (1)
Program.cs (1)
37
options.
GlobalLimiter
= PartitionedRateLimiter.Create<HttpContext, string>(context =>
1 reference to GlobalLimiter
Microsoft.AspNetCore.RateLimiting (1)
RateLimitingMiddleware.cs (1)
55
_globalLimiter = options.Value.
GlobalLimiter
;