Table of Contents

Class HandlerAttributeBase

Namespace
Restate.Sdk
Assembly
Restate.Sdk.dll

Base class for handler attributes, providing shared configuration properties.

[SuppressMessage("Naming", "CA1710:Identifiers should have correct suffix")]
public abstract class HandlerAttributeBase : Attribute
Inheritance
HandlerAttributeBase
Derived
Inherited Members

Properties

AbortTimeout

Maximum time to wait for the handler to complete after the inactivity timeout expires. Format: TimeSpan string (e.g. "00:01:00" for 1 minute).

public string? AbortTimeout { get; set; }

Property Value

string

IdempotencyRetention

Duration to retain idempotent response results when an Idempotency-Key header is used. Format: TimeSpan string (e.g. "1.00:00:00" for 24 hours).

public string? IdempotencyRetention { get; set; }

Property Value

string

InactivityTimeout

Maximum time the handler can be inactive (no messages exchanged) before the runtime suspends the invocation. Format: TimeSpan string (e.g. "00:05:00" for 5 minutes).

public string? InactivityTimeout { get; set; }

Property Value

string

IngressPrivate

When true, this handler cannot be invoked via the Restate ingress HTTP API. It can only be called from other Restate handlers.

public bool IngressPrivate { get; set; }

Property Value

bool

JournalRetention

Duration to retain the invocation journal after the handler completes. Format: TimeSpan string (e.g. "1.00:00:00" for 24 hours).

public string? JournalRetention { get; set; }

Property Value

string

Name

Override the handler name used in discovery and invocation routing. Defaults to the method name.

public string? Name { get; set; }

Property Value

string