PrefixConversionsType

PackageFCQRS
C#-friendly factory for PrefixConversion

Specification

Kind
Type
Members
2
Examples
0
CustomSignature
PrefixConversions.Custom(f)
IdentitySignature
PrefixConversions.Identity

Summary

NameSignatureSynopsis
CustomPrefixConversions.Custom(f)Custom conversion of the correlation id part of the saga name: originatorId~Saga~f(correlationId).
IdentityPrefixConversions.IdentityIdentity conversion - uses originator prefix with saga suffix This creates saga IDs like: originatorId~Saga~correlationId

Custom

PrefixConversions.Custom(f)
Member
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

NameTypeDescription
fFunc<string, string>

Returns

PrefixConversion

Identity

PrefixConversions.Identity
Member
Identity conversion - uses originator prefix with saga suffix This creates saga IDs like: originatorId~Saga~correlationId

Returns

PrefixConversion