Workflow<'TInput, 'TResult>Type

PackageFCQRS.Workflows
A C# workflow. Derive from it, give it a name, and write `Run` as an `async` method. The name is stored in the journal and must not change.

Specification

Kind
Type
Members
3
Examples
0
``.ctor``Signature
Workflow(name)
RunSignature
this.Run
NameSignature
this.Name

Summary

NameSignatureSynopsis
``.ctor``Workflow(name)No description available.
Runthis.RunThe workflow body.
Namethis.NameThe workflow's name.

``.ctor``

Workflow(name)
Member

Parameters

NameTypeDescription
namestring

Returns

Workflow<'TInput, 'TResult>

Run

this.Run
Member
The workflow body. It must be deterministic: take time, GUIDs and random numbers from the context, and do all I/O in activities.

Parameters

NameTypeDescription
contextWorkflowContext
input'TInput

Returns

WorkflowTask<'TResult>

Name

this.Name
Member
The workflow's name.

Returns

string