Dela via


RateLimiterOptions.OnRejected Property

Definition

Gets or sets a 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; set; }
member this.OnRejected : Func<Microsoft.AspNetCore.RateLimiting.OnRejectedContext, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask> with get, set
Public Property OnRejected As Func(Of OnRejectedContext, CancellationToken, ValueTask)

Property Value

Applies to