Skip to content

CallerRateLimitOptionsValidator Class

Fails at startup on a caller budget that would refuse everybody: a limit at or below zero, or a window of no length.

C#
public sealed class CallerRateLimitOptionsValidator : Microsoft.Extensions.Options.IValidateOptions<Abblix.Oidc.Server.Common.Configuration.OidcOptions>

Inheritance System.Object → CallerRateLimitOptionsValidator

Implements Microsoft.Extensions.Options.IValidateOptions<OidcOptions>

Remarks

Both numbers reach FixedWindowRateLimiterOptions, which throws on them - but it is constructed the first time a caller is counted, so without this the deployment starts, serves its metadata, and then answers 500 to the first introspection request anyone makes. Refusing at startup puts the fault in front of whoever wrote the number instead of whoever calls the endpoint.