Table of Contents

Class WorkflowUpdateValidatorAttribute

Namespace
Temporalio.Workflows
Assembly
Temporalio.dll

Designate a method as a validator for an update.

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

Remarks

The method must be a public, non-static, and return void. The single argument must ne the nameof the update method it is validating and the parameters must match.

Constructors

WorkflowUpdateValidatorAttribute(string)

Initializes a new instance of the WorkflowUpdateValidatorAttribute class with the name of the update method.

public WorkflowUpdateValidatorAttribute(string updateMethod)

Parameters

updateMethod string

Name of the update method in this same class.

Properties

UpdateMethod

Gets the name of the update method this attribute applies to.

public string UpdateMethod { get; }

Property Value

string