EnableRateLimitingAttribute Classe

Definizione

Metadati che forniscono la limitazione della frequenza delle richieste specifica dell'endpoint.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class EnableRateLimitingAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type EnableRateLimitingAttribute = class
    inherit Attribute
Public NotInheritable Class EnableRateLimitingAttribute
Inherits Attribute
Ereditarietà
EnableRateLimitingAttribute
Attributi

Commenti

Sostituisce tutti i criteri attualmente applicati all'endpoint. Il limiter globale verrà comunque eseguito negli endpoint con questo attributo applicato.

Costruttori

EnableRateLimitingAttribute(String)

Crea una nuova istanza di EnableRateLimitingAttribute utilizzando i criteri specificati.

Proprietà

PolicyName

Nome del criterio che deve essere applicato.

Si applica a