Class RateLimitingOptions
- Namespace
- Excalibur.Dispatch.Options.Middleware
- Assembly
- Excalibur.Dispatch.dll
Configuration options for rate limiting middleware.
public sealed class RateLimitingOptions
- Inheritance
-
RateLimitingOptions
- Inherited Members
- Extension Methods
Properties
BypassRateLimitingForTypes
Gets or sets message types that bypass rate limiting.
public string[]? BypassRateLimitingForTypes { get; set; }
Property Value
- string[]
The current BypassRateLimitingForTypes value.
DefaultLimit
Gets or sets the default rate limit configuration.
public RateLimitOptions DefaultLimit { get; set; }
Property Value
- RateLimitOptions
The default rate limit configuration.
EnablePerTenantLimiting
Gets or sets a value indicating whether to enable per-tenant rate limiting.
public bool EnablePerTenantLimiting { get; set; }
Property Value
- bool
Default is true.
Enabled
Gets or sets a value indicating whether rate limiting is enabled.
public bool Enabled { get; set; }
Property Value
- bool
Default is true.
GlobalLimit
Gets or sets the global rate limit configuration.
public RateLimitOptions GlobalLimit { get; set; }
Property Value
- RateLimitOptions
The global rate limit configuration.
MessageTypeLimits
Gets message type-specific rate limits.
public Dictionary<string, RateLimitOptions> MessageTypeLimits { get; init; }
Property Value
- Dictionary<string, RateLimitOptions>
The current MessageTypeLimits value.