ActorWiring Type
Low-level wiring over an IActor: register the saga-starter, aggregates and actors, and send commands. Most members are plain static helpers (you call ActorWiring.Foo(actor, …)); a couple are genuine extension methods. For app composition, prefer the host-builder API (AddFcqrs/AddAggregate/AddSaga).
Static members
| Static member | Description |
Full Usage:
ActorWiring.CreateCommand(actor, entityFactory, cid, aggregateId, command, filter)
Parameters:
IActor
entityFactory : AggregateFactory
cid : CID
aggregateId : AggregateId
command : 'TCommand
filter : Func<'TEvent, bool>
Returns: Async<Event<'TEvent>>
|
|
Full Usage:
ActorWiring.InitActor(actor, initialState, entityName, handleCommand, applyEvent, snapshotPolicy)
Parameters:
IActor
initialState : 'TState
entityName : string
handleCommand : Func<Command<'TCommand>, 'TState, EventAction<'TEvent>>
applyEvent : Func<Event<'TEvent>, 'TState, 'TState>
snapshotPolicy : SnapshotPolicy
Returns: EntityFac<obj>
|
|
Full Usage:
ActorWiring.InitActor(actor, initialState, entityName, handleCommand, applyEvent)
Parameters:
IActor
initialState : 'TState
entityName : string
handleCommand : Func<Command<'TCommand>, 'TState, EventAction<'TEvent>>
applyEvent : Func<Event<'TEvent>, 'TState, 'TState>
Returns: EntityFac<obj>
|
|
Full Usage:
ActorWiring.InitAggregate(actor, initialState, entityName, handleCommand, applyEvent, snapshotPolicy)
Parameters:
IActor
initialState : 'TState
entityName : string
handleCommand : Func<Command<'TCommand>, 'TState, EventAction<'TEvent>>
applyEvent : Func<Event<'TEvent>, 'TState, 'TState>
snapshotPolicy : SnapshotPolicy
Returns: AggregateRefs<'TCommand, 'TEvent>
|
|
Full Usage:
ActorWiring.InitAggregate(actor, initialState, entityName, handleCommand, applyEvent)
Parameters:
IActor
initialState : 'TState
entityName : string
handleCommand : Func<Command<'TCommand>, 'TState, EventAction<'TEvent>>
applyEvent : Func<Event<'TEvent>, 'TState, 'TState>
Returns: AggregateRefs<'TCommand, 'TEvent>
|
|
Full Usage:
ActorWiring.InitSagaStarter(actor, eventHandler)
Parameters:
IActor
eventHandler : Func<obj, IList<SagaDefinition>>
|
|
|
|
Full Usage:
ActorWiring.InitSagaStarterSimple(actor, eventHandler)
Parameters:
IActor
eventHandler : Func<obj, IList<AggregateFactory>>
|
|
|
|
Full Usage:
ActorWiring.SendCommandAsync(actor, entityFactory, cid, aggregateId, command, filter)
Parameters:
IActor
entityFactory : AggregateFactory
cid : CID
aggregateId : AggregateId
command : 'TCommand
filter : Func<'TEvent, bool>
Returns: Task<Event<'TEvent>>
|
|
FCQRS