SagaCommandsType

PackageFCQRS
C#-friendly saga command targeting

Specification

Kind
Type
Members
8
Examples
0
ToActorSignature
SagaCommands.ToActor(actorRef, command)
ToActorAfterSignature
SagaCommands.ToActorAfter(actorRef, command, delayMs, taskName)
ToAggregateSignature
SagaCommands.ToAggregate(factory, aggregateId, command)
ToAggregateAfterSignature
SagaCommands.ToAggregateAfter(factory, entityId, command, delayMs, taskName)
ToOriginatorSignature
SagaCommands.ToOriginator(factory, command)

Summary

NameSignatureSynopsis
ToActorSagaCommands.ToActor(actorRef, command)Create a command to send to an actor ref
ToActorAfterSagaCommands.ToActorAfter(actorRef, command, delayMs, taskName)Create a delayed command to a concrete actor ref.
ToAggregateSagaCommands.ToAggregate(factory, aggregateId, command)Create a command to send to a named aggregate
ToAggregateAfterSagaCommands.ToAggregateAfter(factory, entityId, command, delayMs, taskName)Create a delayed command to a specific aggregate instance.
ToOriginatorSagaCommands.ToOriginator(factory, command)Create a command to send to the originator aggregate
ToOriginatorAfterSagaCommands.ToOriginatorAfter(factory, command, delayMs, taskName)Create a delayed command
ToSelfSagaCommands.ToSelf(command)Create a command to the saga itself (raw; lands in HandleEvent), for example a timeout.
ToSelfAfterSagaCommands.ToSelfAfter(command, delayMs, taskName)Schedule a message to the saga itself after a delay, the idiomatic saga timeout.

ToActor

SagaCommands.ToActor(actorRef, command)
Member
Create a command to send to an actor ref

Parameters

NameTypeDescription
actorRefIActorRef<obj>
commandobj

Returns

ExecuteCommand

ToActorAfter

SagaCommands.ToActorAfter(actorRef, command, delayMs, taskName)
Member
Create a delayed command to a concrete actor ref.

Parameters

NameTypeDescription
actorRefIActorRef<obj>
commandobj
delayMsint64
taskNamestring

Returns

ExecuteCommand

ToAggregate

SagaCommands.ToAggregate(factory, aggregateId, command)
Member
Create a command to send to a named aggregate

Parameters

NameTypeDescription
factoryAggregateFactory
aggregateIdstring
commandobj

Returns

ExecuteCommand

ToAggregateAfter

SagaCommands.ToAggregateAfter(factory, entityId, command, delayMs, taskName)
Member
Create a delayed command to a specific aggregate instance.

Parameters

NameTypeDescription
factoryAggregateFactory
entityIdstring
commandobj
delayMsint64
taskNamestring

Returns

ExecuteCommand

ToOriginator

SagaCommands.ToOriginator(factory, command)
Member
Create a command to send to the originator aggregate

Parameters

NameTypeDescription
factoryAggregateFactory
commandobj

Returns

ExecuteCommand

ToOriginatorAfter

SagaCommands.ToOriginatorAfter(factory, command, delayMs, taskName)
Member
Create a delayed command

Parameters

NameTypeDescription
factoryAggregateFactory
commandobj
delayMsint64
taskNamestring

Returns

ExecuteCommand

ToSelf

SagaCommands.ToSelf(command)
Member
Create a command to the saga itself (raw; lands in HandleEvent), for example a timeout.

Parameters

NameTypeDescription
commandobj

Returns

ExecuteCommand

ToSelfAfter

SagaCommands.ToSelfAfter(command, delayMs, taskName)
Member
Schedule a message to the saga itself after a delay, the idiomatic saga timeout.

Parameters

NameTypeDescription
commandobj
delayMsint64
taskNamestring

Returns

ExecuteCommand