Struct CallOptions
- Namespace
- Restate.Sdk
- Assembly
- Restate.Sdk.dll
Options for Call<TResponse>(string, string, object?, CallOptions) operations. Provides idempotency key support for call deduplication, and the flow-control scope and limit key the server uses to bound concurrency.
public readonly record struct CallOptions : IEquatable<CallOptions>
- Implements
- Inherited Members
Properties
IdempotencyKey
Idempotency key to deduplicate call operations. When set, Restate ensures at-most-once execution for calls with the same key.
public string? IdempotencyKey { get; init; }
Property Value
LimitKey
Narrows the concurrency limit within Scope to invocations sharing this key. Only valid together with a scope: setting it without one throws when the call is made.
public string? LimitKey { get; init; }
Property Value
Scope
Name of the server-side concurrency scope the invocation runs in. Null (the default) invokes outside any scope.
public string? Scope { get; init; }
Property Value
Methods
WithIdempotencyKey(string)
Idempotency key to deduplicate call operations. When set, Restate ensures at-most-once execution for calls with the same key.
public static CallOptions WithIdempotencyKey(string key)
Parameters
keystring
Returns
WithScope(string)
Name of the server-side concurrency scope the invocation runs in. Null (the default) invokes outside any scope.
public static CallOptions WithScope(string scope)
Parameters
scopestring
Returns
WithScope(string, string)
Narrows the concurrency limit within Scope to invocations sharing this key. Only valid together with a scope: setting it without one throws when the call is made.
public static CallOptions WithScope(string scope, string limitKey)