IActor Type
Defines the core functionalities and context provided by the FCQRS environment to actors. This interface provides access to essential Akka.NET services and FCQRS initialization methods.
Instance members
Instance member | Description |
|
Creates a command subscription to wait for a specific event from a target actor.
Sends the command and asynchronously returns the first matching event received.
Entity factory function for the target actor type.
Correlation ID for tracking.
Entity ID of the target actor.
The command payload to send.
A predicate function to select the desired event.
Optional metadata to include with the command.
|
Full Usage:
this.InitializeActor
Parameters:
'a
arg1 : 'a0
arg2 : string
arg3 : Command<'c> -> 'a0 -> EventAction<'b>
arg4 : Event<'b> -> 'a0 -> 'a0
Returns: EntityFac<obj>
Modifiers: abstract Type parameters: 'a, 'a, 'c, 'b |
Initializes a sharded, persistent aggregate actor.
Environment configuration (IConfiguration & ILoggerFactory).
The initial state for new aggregate instances.
The shard type name for this aggregate.
The command handler function: `Command -> State -> EventAction`.
The event handler function: `Event -> State -> State`.
|
Full Usage:
this.InitializeSaga
Parameters:
'a
arg1 : SagaState<'SagaState, 'State>
arg2 : obj -> SagaState<'SagaState, 'State> -> EventAction<'State>
arg3 : SagaState<'SagaState, 'State> -> SagaStartingEvent<Event<'c>> option -> bool -> Effect * 'State option * ExecuteCommand list
arg4 : SagaState<'SagaState, 'State> -> SagaState<'SagaState, 'State>
arg5 : string
Returns: EntityFac<obj>
Modifiers: abstract Type parameters: 'a, 'SagaState, 'State, 'c |
Initializes a sharded, persistent saga actor.
Environment configuration (IConfiguration & ILoggerFactory).
The initial state (`SagaState`) for new saga instances.
The event handler function: `Event -> SagaState -> EventAction`.
Function determining side effects based on state transitions: `SagaState -> Option
|
Full Usage:
this.InitializeSagaStarter
Parameters:
obj -> ((string -> IEntityRef<obj>) * PrefixConversion * obj) list
Modifiers: abstract |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|