RateLimiterOptions.OnRejected Proprietà

Definizione

Ottiene o imposta un oggetto Func<T1,T2,TResult> che gestisce le richieste rifiutate dal 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)

Valore della proprietà

Si applica a