PrefixConversionUnion
PackageFCQRS
How FCQRS names a saga it starts for an originator event.
`PrefixConversion (Some f)` names the saga `originatorId~Saga~f(correlationId)`, and `Some id` gives
the standard name `originatorId~Saga~correlationId`. A saga reads its originator and correlation id
from its own name to receive the originator's events and to correlate the commands it sends, so `f`
must return the correlation id, optionally after a prefix that ends with `~` (for example
`"audit~" + cid`). The starter logs an error and does not start a saga when `f` changes or drops the
correlation id, or throws.
`PrefixConversion None` uses `originatorId~correlationId` as the saga name. That name has no `~Saga~`
marker, so the saga does not receive its originator's events.
Specification
Kind
Union
Members
1
Examples
0
PrefixConversionSignature
PrefixConversion (string -> string) option
Summary
| Name | Signature | Synopsis |
|---|---|---|
| PrefixConversion | PrefixConversion (string -> string) option | No description available. |