Table of Contents

Struct SendOptions

Namespace
Restate.Sdk
Assembly
Restate.Sdk.dll

Options for fire-and-forget send operations.

public readonly record struct SendOptions : IEquatable<SendOptions>
Implements
Inherited Members

Properties

Delay

Delay before the invocation is executed.

public TimeSpan? Delay { get; init; }

Property Value

TimeSpan?

IdempotencyKey

Idempotency key to deduplicate send operations.

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 send 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

AfterDelay(TimeSpan)

Delay before the invocation is executed.

public static SendOptions AfterDelay(TimeSpan delay)

Parameters

delay TimeSpan

Returns

SendOptions

WithIdempotencyKey(string)

Idempotency key to deduplicate send operations.

public static SendOptions WithIdempotencyKey(string key)

Parameters

key string

Returns

SendOptions

WithScope(string)

Name of the server-side concurrency scope the invocation runs in. Null (the default) invokes outside any scope.

public static SendOptions WithScope(string scope)

Parameters

scope string

Returns

SendOptions

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 send is made.

public static SendOptions WithScope(string scope, string limitKey)

Parameters

scope string
limitKey string

Returns

SendOptions