Method AddWorkflow
- Namespace
- Millrace
- Assembly
- Millrace.dll
AddWorkflow<TWorkflow>()
Registers a workflow definition (ARCHITECTURE.md ยง6.1).
public MillraceBuilder AddWorkflow<TWorkflow>() where TWorkflow : class, new()
Returns
Type Parameters
TWorkflow
Remarks
The definition is compiled once at registration, so a malformed graph โ no steps, a blank id, a version below 1 โ fails at startup rather than when an instance first runs it.
Register every version that still has instances in flight. Removing a version strands the instances pinned to it, because an instance always finishes on the version it started with.
Exceptions
- ArgumentException
TWorkflowdoes not implement IWorkflow<TData>.