RateLimiterOptions.OnRejected 属性

定义

获取或设置处理 Func<T1,T2,TResult> 此中间件拒绝的请求的 。

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)

属性值

适用于