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 |
|
|
Full Usage:
this.CreateCommandSubscription
Parameters:
string -> IEntityRef<obj>
arg1 : CID
arg2 : AggregateId
arg3 : 'b
arg4 : 'c -> bool
arg5 : Map<string, string> option
Returns: Async<Event<'c>>
Modifiers: abstract Type parameters: 'b, 'c |
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 : string
arg2 : Command<'c> -> 'a -> EventAction<'b>
arg3 : Event<'b> -> 'a -> 'a
Returns: EntityFac<obj>
Modifiers: abstract Type parameters: '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:
SagaState<'SagaState, 'State>
arg1 : obj -> SagaState<'SagaState, 'State> -> EventAction<'State>
arg2 : SagaState<'SagaState, 'State> -> SagaStartingEvent<Event<'c>> option -> bool -> SagaTransition<'State> * ExecuteCommand list
arg3 : SagaState<'SagaState, 'State> -> SagaState<'SagaState, 'State>
arg4 : string
Returns: EntityFac<obj>
Modifiers: abstract Type parameters: 'SagaState, 'State, 'c |
Initializes a sharded, persistent saga actor.
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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FCQRS