Dela via


IRateLimiterPolicy<TPartitionKey>.OnRejected Property

Definition

Gets the Func<T1,T2,TResult> that handles requests rejected by this middleware.

public Func<Microsoft.AspNetCore.RateLimiting.OnRejectedContext,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask>? OnRejected { get; }
member this.OnRejected : Func<Microsoft.AspNetCore.RateLimiting.OnRejectedContext, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask>
Public ReadOnly Property OnRejected As Func(Of OnRejectedContext, CancellationToken, ValueTask)

Property Value

Applies to