Header menu logo FCQRS

IActorExtensions Type

Extension methods for IActor

Static members

Static member Description

IActorExtensions.CreateCommand(actor, entityFactory, cid, aggregateId, command, filter)

Full Usage: IActorExtensions.CreateCommand(actor, entityFactory, cid, aggregateId, command, filter)

Parameters:
Returns: Async<Event<'TEvent>>

C#-friendly CreateCommandSubscription that returns FSharpAsync (for use with Handler delegate)

actor : IActor
entityFactory : Func<string, IEntityRef<obj>>
cid : CID
aggregateId : AggregateId
command : 'TCommand
filter : Func<'TEvent, bool>
Returns: Async<Event<'TEvent>>

IActorExtensions.InitActor(actor, initialState, entityName, handleCommand, applyEvent)

Full Usage: IActorExtensions.InitActor(actor, initialState, entityName, handleCommand, applyEvent)

Parameters:
Returns: EntityFac<obj>

C#-friendly InitializeActor that accepts Func delegates instead of F# functions

actor : IActor
initialState : 'TState
entityName : string
handleCommand : Func<Command<'TCommand>, 'TState, EventAction<'TEvent>>
applyEvent : Func<Event<'TEvent>, 'TState, 'TState>
Returns: EntityFac<obj>

IActorExtensions.InitSagaStarter(actor, eventHandler)

Full Usage: IActorExtensions.InitSagaStarter(actor, eventHandler)

Parameters:

C#-friendly InitializeSagaStarter that accepts Func returning IList of SagaDefinition

actor : IActor
eventHandler : Func<obj, IList<SagaDefinition>>

IActorExtensions.InitSagaStarterEmpty(actor)

Full Usage: IActorExtensions.InitSagaStarterEmpty(actor)

Parameters:

Static helper for C# where extension may not resolve

actor : IActor

IActorExtensions.InitializeSagaStarterEmpty(actor)

Full Usage: IActorExtensions.InitializeSagaStarterEmpty(actor)

Parameters:

Initialize saga starter with no sagas (for simple scenarios)

actor : IActor

IActorExtensions.SendCommandAsync(actor, entityFactory, cid, aggregateId, command, filter)

Full Usage: IActorExtensions.SendCommandAsync(actor, entityFactory, cid, aggregateId, command, filter)

Parameters:
Returns: Task<Event<'TEvent>>

Send a command and wait for the event (C# friendly)

actor : IActor
entityFactory : Func<string, IEntityRef<obj>>
cid : CID
aggregateId : AggregateId
command : 'TCommand
filter : Func<'TEvent, bool>
Returns: Task<Event<'TEvent>>

Type something to start searching.