Skip to content

AgentPrismIdempotencyOptions

Namespace AgentPrism · Assembly AgentPrism.Core.dll

Options for Idempotency-Key support.

public sealed class AgentPrismIdempotencyOptions

objectAgentPrismIdempotencyOptions

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Reads values from the AgentPrism:Idempotency configuration section.

The default is enabled, and that is a deliberate reading of the no-surprises rule. Unlike rate limiting and quotas, this feature activates only when a client sends the Idempotency-Key header. A request without the header has no extra cost or behavior change. If disabled by default, a client that sends the header could assume protection when it has none. That would be the silent surprise.

public AgentPrismIdempotencyOptions()

The configuration section name.

public const string SectionName = "AgentPrism:Idempotency"

string

Gets or sets a value that enables idempotency support. Even when enabled, a request without an Idempotency-Key header has no extra cost. Default: true.

public bool Enabled { get; set; }

bool

The maximum key length. The endpoint returns 400 when it is exceeded.

public int MaxKeyLength { get; set; }

int