SagaDefinitionType

PackageFCQRS
C#-friendly class for defining saga starters (uses class for C# object initializer syntax)

Specification

Kind
Type
Members
4
Examples
0
``.ctor``Signature
SagaDefinition()
FactorySignature
this.Factory
PrefixConversionSignature
this.PrefixConversion
StartingEventSignature
this.StartingEvent

Summary

NameSignatureSynopsis
``.ctor``SagaDefinition()No description available.
Factorythis.FactoryFactory function to create entity reference from entity ID
PrefixConversionthis.PrefixConversionHow to derive saga entity ID from source entity ID.
StartingEventthis.StartingEventThe event to send to start the saga.

``.ctor``

SagaDefinition()
Member

Returns

SagaDefinition

Factory

this.Factory
Member
Factory function to create entity reference from entity ID

Returns

AggregateFactory

PrefixConversion

this.PrefixConversion
Member
How to derive saga entity ID from source entity ID. Defaults to identity (originatorId~Saga~correlationId). The previous default of `PrefixConversion None` produced saga names without the ~Saga~ marker, which breaks originator/saga name resolution and the saga-start handshake.

Returns

PrefixConversion

StartingEvent

this.StartingEvent
Member
The event to send to start the saga. Pass the originator's event unchanged: a saga recovered before it leaves Started asks the originator whether this exact event (its Id and Version) is the one it journaled, and ends when it is not.

Returns

obj