Skip to content

DurableIdempotencyKeyHandler Constructors

Adds an Idempotency-Key header which identifies the running durable task to each request that a durable task sends, so every attempt and replay of the task sends the same key.

DurableIdempotencyKeyHandler(IGrainContextAccessor, IOptions<ClusterOptions>)

View source
public DurableIdempotencyKeyHandler(IGrainContextAccessor grainContextAccessor, IOptions<ClusterOptions> clusterOptions)
Adds an Idempotency-Key header which identifies the running durable task to each request that a durable task sends, so every attempt and replay of the task sends the same key.

Parameters

grainContextAccessorIGrainContextAccessor
clusterOptionsIOptions<ClusterOptions>