Class IdempotentAttribute
This action will use a client-provided Idempotency key to protect against duplicate requests. Header example -> Idempotency-Key: e1sCcjdjd39sAa229Hsd QuerySring example -> ?@IdempotencyKey=e1sCcjdjd39sAa229Hsd
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Module|AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public class IdempotentAttribute : Attribute
- Inheritance
-
objectAttributeIdempotentAttribute
Constructors
IdempotentAttribute()
public IdempotentAttribute()
Fields
AbsoluteExpiration
The absolute time in MINUTES to keep the cached response. Default value is 24 hours
public int AbsoluteExpiration
Field Value
SlidingExpiration
The sliding time in MINUTES to keep the cached response. Default value is 1 hour
public int SlidingExpiration
Field Value
Methods
IsDefaultAttribute()
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
public override bool IsDefaultAttribute()