Constructor WorkflowRegistry
WorkflowRegistry(IEnumerable<WorkflowDefinition>)
Builds the registry from every definition registered with the container.
public WorkflowRegistry(IEnumerable<WorkflowDefinition> definitions)
Parameters
definitionsIEnumerable<WorkflowDefinition>
Remarks
Also where a duplicate (Id, Version) is caught. That is a startup failure rather than
a last-one-wins merge, because two definitions claiming one key means an instance pinned to
that version could resume into either — and which one it got would depend on registration
order.
Exceptions
- InvalidOperationException
Two definitions share an
(Id, Version).