EnableRateLimitingAttribute Klasa

Definicja

Metadane, które zapewniają ograniczanie szybkości żądań specyficznych dla punktu końcowego.

[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
Dziedziczenie
EnableRateLimitingAttribute
Atrybuty

Uwagi

Zastępuje wszystkie zasady, które są obecnie stosowane do punktu końcowego. Globalny ogranicznik będzie nadal działać w punktach końcowych z zastosowanym tym atrybutem.

Konstruktory

EnableRateLimitingAttribute(String)

Tworzy nowe wystąpienie EnableRateLimitingAttribute przy użyciu określonych zasad.

Właściwości

PolicyName

Nazwa zasad, które należy zastosować.

Dotyczy