PrefixConversionsType
PackageFCQRS
C#-friendly factory for PrefixConversion
Specification
Kind
Type
Members
2
Examples
0
CustomSignature
PrefixConversions.Custom(f)
IdentitySignature
PrefixConversions.Identity
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Custom | PrefixConversions.Custom(f) | Custom conversion of the correlation id part of the saga name: originatorId~Saga~f(correlationId). |
| Identity | PrefixConversions.Identity | Identity conversion - uses originator prefix with saga suffix This creates saga IDs like: originatorId~Saga~correlationId |
Custom conversion of the correlation id part of the saga name: originatorId~Saga~f(correlationId).
The saga reads its correlation id from the end of its name, so `f` must return the correlation id,
optionally after a prefix that ends with `~`, for example `cid => "audit~" + cid`. FCQRS
logs an error and does not start the saga when `f` changes or drops the correlation id, or throws.
Parameters
| Name | Type | Description |
|---|---|---|
| f | Func<string, string> |
Returns
PrefixConversion