Header menu logo FCQRS

AggregateHandle<'Command, 'Event> Type

What you get back after registering an aggregate.

Record fields

Record Field Description

Factory

Full Usage: Factory

Field type: AggregateFactory

Entity-ref factory (DEFAULT_SHARD applied) — hand this to a saga to target it.

Field type: AggregateFactory

Send

Full Usage: Send

Field type: CID -> AggregateId -> 'Command -> ('Event -> bool) -> Async<Event<'Event>>

Send a command and await the first matching event (read-your-writes).

Field type: CID -> AggregateId -> 'Command -> ('Event -> bool) -> Async<Event<'Event>>

Type something to start searching.