Click or drag to resize

CadenceClientRegisterWorkflowAsyncTWorkflow Method

Registers a workflow implementation with Cadence.

Namespace:  Neon.Cadence
Assembly:  Neon.Cadence (in Neon.Cadence.dll) Version: 2.14.0
Syntax
public Task RegisterWorkflowAsync<TWorkflow>(
	string workflowTypeName = null,
	string domain = null
)
where TWorkflow : WorkflowBase

Parameters

workflowTypeName (Optional)
Type: SystemString
Optionally specifies a custom workflow type name that will be used for identifying the workflow implementation in Cadence. This defaults to the fully qualified TWorkflow type name.
domain (Optional)
Type: SystemString
Optionally overrides the default client domain.

Type Parameters

TWorkflow
The WorkflowBase derived class implementing the workflow.

Return Value

Type: Task
The tracking Task.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown if another workflow class has already been registered for workflowTypeName.
WorkflowWorkerStartedException Thrown if a workflow worker has already been started for the client. You must register workflow implementations before starting workers.
Remarks
Note Note
Be sure to register all of your workflow implementations before starting workers.
See Also