Class RateLimiterPolicyConfiguration
- Namespace
- Dynamicweb.SystemTools.Security
- Assembly
- Dynamicweb.dll
Defines the configuration for a single rate limiting policy.
public sealed class RateLimiterPolicyConfiguration
- Inheritance
-
RateLimiterPolicyConfiguration
- Inherited Members
Properties
Active
Shows whether the policy is active or not. If set to false, the policy will not be applied.
public bool Active { get; set; }
Property Value
ExcludeFromGlobalLimiter
If true, requests matching this policy will not be processed by the global rate limiter.
If false, after this policy's limiter is passed, the request will also be subject to the global limiter.
public bool ExcludeFromGlobalLimiter { get; set; }
Property Value
Id
public long Id { get; set; }
Property Value
IsSystemPolicy
Shows whether the policy is a system policy. System policies are predefined and cannot be deleted.
public bool IsSystemPolicy { get; set; }
Property Value
Name
The name/identifier of the policy. Used to reference the policy.
public string Name { get; set; }
Property Value
Paths
A list of URL paths to which this policy applies. The policy is triggered if a request path starts with any of these values.
public IEnumerable<string> Paths { get; set; }
Property Value
PermitLimit
Represents the maximum number of requests that are allowed within a time window defined by WindowSeconds.
public int PermitLimit { get; set; }
Property Value
Priority
Defines the order of policy evaluation. Policies with a higher priority value are evaluated first.
public int Priority { get; set; }
Property Value
QueueLimit
The maximum number of requests that can be queued when the PermitLimit is reached. A value of 0 means requests are rejected immediately without queuing.
public int QueueLimit { get; set; }
Property Value
WindowSeconds
The duration of the time window in seconds, during which up to PermitLimit requests are allowed.
public int WindowSeconds { get; set; }
Property Value
Methods
IsValid()
Validates the policy configuration
public bool IsValid()