Skip to main content

RateLimitState Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Features.Storages.Proto

RateLimitState Class

Represents the rate limiting state for a user code or IP address

public sealed class RateLimitState : Google.Protobuf.IMessage<Abblix.Oidc.Server.Features.Storages.Proto.RateLimitState>, Google.Protobuf.IMessage, System.IEquatable<Abblix.Oidc.Server.Features.Storages.Proto.RateLimitState>, Google.Protobuf.IDeepCloneable<Abblix.Oidc.Server.Features.Storages.Proto.RateLimitState>, Google.Protobuf.IBufferMessage

Inheritance System.Object → RateLimitState

Implements Google.Protobuf.IMessage<RateLimitState>, Google.Protobuf.IMessage, System.IEquatable<RateLimitState>, Google.Protobuf.IDeepCloneable<RateLimitState>, Google.Protobuf.IBufferMessage

Fields

RateLimitState.BlockedUntilFieldNumber Field

Field number for the "blocked_until" field.

public const int BlockedUntilFieldNumber = 4;

Field Value

System.Int32

RateLimitState.FailureCountFieldNumber Field

Field number for the "failure_count" field.

public const int FailureCountFieldNumber = 1;

Field Value

System.Int32

RateLimitState.FirstFailureAtFieldNumber Field

Field number for the "first_failure_at" field.

public const int FirstFailureAtFieldNumber = 2;

Field Value

System.Int32

RateLimitState.LastFailureAtFieldNumber Field

Field number for the "last_failure_at" field.

public const int LastFailureAtFieldNumber = 3;

Field Value

System.Int32

Properties

RateLimitState.BlockedUntil Property

The timestamp until which the user code/IP is blocked (null if not blocked)

public Google.Protobuf.WellKnownTypes.Timestamp BlockedUntil { get; set; }

Property Value

Google.Protobuf.WellKnownTypes.Timestamp

RateLimitState.FailureCount Property

The total number of failed verification attempts

public int FailureCount { get; set; }

Property Value

System.Int32

RateLimitState.FirstFailureAt Property

The timestamp of the first failure in the current window

public Google.Protobuf.WellKnownTypes.Timestamp FirstFailureAt { get; set; }

Property Value

Google.Protobuf.WellKnownTypes.Timestamp

RateLimitState.LastFailureAt Property

The timestamp of the most recent failure

public Google.Protobuf.WellKnownTypes.Timestamp LastFailureAt { get; set; }

Property Value

Google.Protobuf.WellKnownTypes.Timestamp