1 instantiation of OnRejectedContext
Microsoft.AspNetCore.RateLimiting (1)
RateLimitingMiddleware.cs (1)
146
await thisRequestOnRejected(new
OnRejectedContext
() { HttpContext = context, Lease = leaseContext.Lease! }, context.RequestAborted);
10 references to OnRejectedContext
Microsoft.AspNetCore.RateLimiting (6)
DefaultRateLimiterPolicy.cs (3)
12
private readonly Func<
OnRejectedContext
, CancellationToken, ValueTask>? _onRejected;
14
public DefaultRateLimiterPolicy(Func<HttpContext, RateLimitPartition<DefaultKeyType>> partitioner, Func<
OnRejectedContext
, CancellationToken, ValueTask>? onRejected)
20
public Func<
OnRejectedContext
, CancellationToken, ValueTask>? OnRejected => _onRejected;
IRateLimiterPolicy.cs (1)
17
Func<
OnRejectedContext
, CancellationToken, ValueTask>? OnRejected { get; }
RateLimiterOptions.cs (1)
31
public Func<
OnRejectedContext
, CancellationToken, ValueTask>? OnRejected { get; set; }
RateLimitingMiddleware.cs (1)
18
private readonly Func<
OnRejectedContext
, CancellationToken, ValueTask>? _defaultOnRejected;
Microsoft.AspNetCore.RateLimiting.Tests (2)
TestRateLimiterPolicy.cs (2)
12
private readonly Func<
OnRejectedContext
, CancellationToken, ValueTask> _onRejected;
26
public Func<
OnRejectedContext
, CancellationToken, ValueTask> OnRejected { get => _onRejected; }
RateLimitingSample (2)
SampleRateLimiterPolicy.cs (2)
11
private Func<
OnRejectedContext
, CancellationToken, ValueTask>? _onRejected;
23
public Func<
OnRejectedContext
, CancellationToken, ValueTask>? OnRejected { get => _onRejected; }