14 writes to OnRejected
Microsoft.AspNetCore.RateLimiting.Tests (14)
RateLimitingMiddlewareTests.cs (14)
91options.Value.OnRejected = (context, token) => 116options.Value.OnRejected = (context, token) => 195options.Value.OnRejected = (context, token) => 231options.Value.OnRejected = (context, token) => 262options.Value.OnRejected = (context, token) => 294options.Value.OnRejected = (context, token) => 326options.Value.OnRejected = (context, token) => 358options.Value.OnRejected = (context, token) => 389options.Value.OnRejected = (context, token) => 435options.Value.OnRejected = (context, token) => 487options.Value.OnRejected = (context, token) => 525options.Value.OnRejected = (context, token) => 561options.Value.OnRejected = (context, token) => 595options.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;