AgentPrismIdempotencyOptions
AgentPrism.Core.dllOptions for Idempotency-Key support.
public sealed class AgentPrismIdempotencyOptionsInheritance
Section titled “Inheritance”object ← AgentPrismIdempotencyOptions
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”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.
Constructors
Section titled “Constructors”AgentPrismIdempotencyOptions()
Section titled “ AgentPrismIdempotencyOptions()”public AgentPrismIdempotencyOptions()Fields
Section titled “Fields”SectionName
Section titled “ SectionName”The configuration section name.
public const string SectionName = "AgentPrism:Idempotency"Field Value
Section titled “Field Value”Properties
Section titled “Properties”Enabled
Section titled “ Enabled”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; }Property Value
Section titled “Property Value”MaxKeyLength
Section titled “ MaxKeyLength”The maximum key length. The endpoint returns 400 when it is exceeded.
public int MaxKeyLength { get; set; }