Table of Contents

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

string

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

string

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

string

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

key string

Returns

CallOptions

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

scope string

Returns

CallOptions

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)

Parameters

scope string
limitKey string

Returns

CallOptions