EnableRateLimitingAttribute Class

Definition

Metadata that provides endpoint-specific request rate limiting.

[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
Inheritance
EnableRateLimitingAttribute
Attributes

Remarks

Replaces any policies currently applied to the endpoint. The global limiter will still run on endpoints with this attribute applied.

Constructors

EnableRateLimitingAttribute(String)

Creates a new instance of EnableRateLimitingAttribute using the specified policy.

Properties

PolicyName

The name of the policy which needs to be applied.

Applies to