Table of Contents

Class WorkflowAttribute

Namespace
Restate.Sdk
Assembly
Restate.Sdk.dll

Marks a class as a Restate workflow — a virtual object with a run handler that executes exactly once per workflow ID, plus shared handlers for queries and signals.

[AttributeUsage(AttributeTargets.Class)]
public sealed class WorkflowAttribute : Attribute
Inheritance
WorkflowAttribute
Inherited Members

Properties

Name

Override the service name used in discovery and invocation routing. Defaults to the class name.

public string? Name { get; set; }

Property Value

string

WorkflowRetention

Duration to retain the workflow execution data after the workflow completes. Format: TimeSpan string (e.g. "1.00:00:00" for 24 hours).

public string? WorkflowRetention { get; set; }

Property Value

string