14 writes to OnRejected
Microsoft.AspNetCore.RateLimiting.Tests (14)
RateLimitingMiddlewareTests.cs (14)
91
options.Value.
OnRejected
= (context, token) =>
116
options.Value.
OnRejected
= (context, token) =>
195
options.Value.
OnRejected
= (context, token) =>
231
options.Value.
OnRejected
= (context, token) =>
262
options.Value.
OnRejected
= (context, token) =>
294
options.Value.
OnRejected
= (context, token) =>
326
options.Value.
OnRejected
= (context, token) =>
358
options.Value.
OnRejected
= (context, token) =>
389
options.Value.
OnRejected
= (context, token) =>
435
options.Value.
OnRejected
= (context, token) =>
487
options.Value.
OnRejected
= (context, token) =>
525
options.Value.
OnRejected
= (context, token) =>
561
options.Value.
OnRejected
= (context, token) =>
595
options.Value.
OnRejected
= (context, token) =>
3 references to OnRejected
Microsoft.AspNetCore.RateLimiting (3)
RateLimiterOptions.cs (2)
38
/// This status code will be set before <see cref="
OnRejected
"/> is called, so any status code set by
39
/// <see cref="
OnRejected
"/> will "win" over this default.
RateLimitingMiddleware.cs (1)
45
_defaultOnRejected = options.Value.
OnRejected
;