WorkflowHostType
PackageFCQRS.Workflows
Registers C# workflows.
Specification
Kind
Type
Members
3
Examples
0
DefineSignature
WorkflowHost.Define(workflow)
RegisterSignature
WorkflowHost.Register(actor, workflow)
RunningSignature
WorkflowHost.Running(actor)
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Define | WorkflowHost.Define(workflow) | The workflow as a definition F# code can register, start as a child, or put in a stream. |
| Register | WorkflowHost.Register(actor, workflow) | Registers the workflow with the actor system and returns its client. |
| Running | WorkflowHost.Running(actor) | The step attempts this process is running, oldest first, as `Workflows.running` lists them. |
The workflow as a definition F# code can register, start as a child, or put in a stream.
Parameters
| Name | Type | Description |
|---|---|---|
| workflow | Workflow<'TInput, 'TResult> |
Returns
WorkflowDefinition<'TInput, 'TResult>
Registers the workflow with the actor system and returns its client. Instances that were
running when the process last stopped resume as soon as this is called.
Parameters
| Name | Type | Description |
|---|---|---|
| actor | IActor | |
| workflow | Workflow<'TInput, 'TResult> |
Returns
IWorkflowClient<'TInput, 'TResult>
The step attempts this process is running, oldest first, as `Workflows.running` lists them.
An attempt stays listed until its call returns, also after its token was cancelled. When the
actor system shuts down, it waits up to `akka.fcqrs.workflow-drain-timeout` (three seconds)
for these calls, and logs a warning for each one still running.
Parameters
| Name | Type | Description |
|---|---|---|
| actor | IActor |
Returns
IReadOnlyList<RunningAttempt>