namespace Sufi.Demo.PeopleDirectory.UI.Server.Options { /// /// Represents configuration options for rate limiting functionality. /// /// This type is used to define the parameters for controlling the rate at which operations are /// allowed. It specifies the maximum number of permits and the time window during which the permits are /// valid. public record RateLimitOptions { /// /// Gets the maximum number of permits that can be issued. /// public int PermitLimit { get; init; } = 100; /// /// Gets the time interval that defines the window for rate-limiting operations (in seconds). /// public int Window { get; init; } = 60; } }