Table of Contents

Class WorkflowRunAttribute

Namespace
Temporalio.Workflows
Assembly
Temporalio.dll

Designate a method as the entry point to a workflow.

[AttributeUsage(AttributeTargets.Method, Inherited = false)]
public sealed class WorkflowRunAttribute : Attribute
Inheritance
WorkflowRunAttribute
Inherited Members

Remarks

All workflows must have a single method with this attribute. The method must be declared on the workflow class with this attribute even if it just delegates to a base class. The method must be public and return a task. It is encouraged to use a single parameter record and a return type record so that fields can be added to either in a future-proof way.