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
IdempotencyKey
Idempotency key to deduplicate send operations.
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 send 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
AfterDelay(TimeSpan)
Delay before the invocation is executed.
public static SendOptions AfterDelay(TimeSpan delay)
Parameters
delayTimeSpan
Returns
WithIdempotencyKey(string)
Idempotency key to deduplicate send operations.
public static SendOptions 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 SendOptions 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 send is made.
public static SendOptions WithScope(string scope, string limitKey)