Table of Contents

Class WorkflowQueryDefinition

Namespace
Temporalio.Workflows
Assembly
Temporalio.dll

Definition of a workflow query.

public class WorkflowQueryDefinition
Inheritance
WorkflowQueryDefinition
Inherited Members

Properties

Name

Gets the query name.

public string Name { get; }

Property Value

string

Methods

CreateWithoutAttribute(string, Delegate)

Creates a query definition from an explicit name and method. Most users should use FromMethod(MethodInfo) with attributes instead.

public static WorkflowQueryDefinition CreateWithoutAttribute(string name, Delegate del)

Parameters

name string

Query name.

del Delegate

Query delegate.

Returns

WorkflowQueryDefinition

Query definition.

FromMethod(MethodInfo)

Get a query definition from a method or fail. The result is cached.

public static WorkflowQueryDefinition FromMethod(MethodInfo method)

Parameters

method MethodInfo

Query method.

Returns

WorkflowQueryDefinition

Query definition.