IRateLimiterPolicy<TPartitionKey>.OnRejected Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)