RateLimitOptions
Class public
Configuration options for API rate limiting.
Definition
Section titled Definitionpublic class RateLimitOptionsRemarks
Section titled RemarksBind an instance of RateLimitOptions from the application's configuration section (e.g., "RateLimiting") to control how many requests a client may make within a sliding time window.
Properties3
Section titled PropertiesMaxRequests Section titled MaxRequests int int RateLimitOptions.MaxRequestsGets or sets the maximum number of requests allowed within the time window.
RetryAfterSeconds Section titled RetryAfterSeconds int int RateLimitOptions.RetryAfterSecondsGets or sets the number of seconds a client should wait before retrying after being rate-limited.
WindowSeconds Section titled WindowSeconds int int RateLimitOptions.WindowSecondsGets or sets the duration of the sliding window in seconds.