Class WorkflowUpdateDefinition
- Namespace
- Temporalio.Workflows
- Assembly
- Temporalio.dll
Definition of a workflow update.
public class WorkflowUpdateDefinition
- Inheritance
-
WorkflowUpdateDefinition
- Inherited Members
Properties
Description
Gets the optional update description.
public string? Description { get; }
Property Value
Dynamic
Gets a value indicating whether the update is dynamic.
public bool Dynamic { get; }
Property Value
Name
Gets the update name. This is null if the update is dynamic.
public string? Name { get; }
Property Value
Methods
CreateWithoutAttribute(string?, Delegate, Delegate?, HandlerUnfinishedPolicy, string?)
Creates an update definition from an explicit name and method. Most users should use FromMethod(MethodInfo, MethodInfo?) with attributes instead.
public static WorkflowUpdateDefinition CreateWithoutAttribute(string? name, Delegate del, Delegate? validatorDel = null, HandlerUnfinishedPolicy unfinishedPolicy = HandlerUnfinishedPolicy.WarnAndAbandon, string? description = null)
Parameters
namestringUpdate name. Null for dynamic update.
delDelegateUpdate delegate.
validatorDelDelegateOptional validator delegate.
unfinishedPolicyHandlerUnfinishedPolicyActions taken if a workflow exits with a running instance of this handler.
descriptionstringOptional description. WARNING: This setting is experimental.
Returns
- WorkflowUpdateDefinition
Update definition.
FromMethod(MethodInfo, MethodInfo?)
Get an update definition from a method or fail. The result is cached.
public static WorkflowUpdateDefinition FromMethod(MethodInfo method, MethodInfo? validatorMethod = null)
Parameters
methodMethodInfoUpdate method.
validatorMethodMethodInfoOptional validator method.
Returns
- WorkflowUpdateDefinition
Update definition.