Header menu logo FCQRS

EventAction<'T> Type

Defines the possible actions an aggregate or saga actor can take after processing a command or event. The type of the event payload associated with the action (e.g., for PersistEvent).

Union cases

Union case Description

DeferEvent 'T

Full Usage: DeferEvent 'T

Parameters:
    Item : 'T

Defer the event. It will be stashed and processed later, potentially after other events.

Item : 'T

IgnoreEvent

Full Usage: IgnoreEvent

Ignore the event or command completely. No persistence, publishing, or state update occurs.

PersistEvent 'T

Full Usage: PersistEvent 'T

Parameters:
    Item : 'T

Persist the event to the journal. The actor's state will be updated using the event handler *after* persistence succeeds.

Item : 'T

PublishEvent Event<'T>

Full Usage: PublishEvent Event<'T>

Parameters:

Publish the event immediately to the mediator without persisting it. The actor's state is not updated.

Item : Event<'T>

Stash EventAction<'T>

Full Usage: Stash EventAction<'T>

Parameters:
Item : EventAction<'T>

StateChangedEvent 'T

Full Usage: StateChangedEvent 'T

Parameters:
    Item : 'T

Indicate that the state of a saga has changed (used internally by sagas for persistence).

Item : 'T

UnhandledEvent

Full Usage: UnhandledEvent

Indicate that the command or event could not be handled in the current state.

Unstash EventAction<'T>

Full Usage: Unstash EventAction<'T>

Parameters:
Item : EventAction<'T>

UnstashAll EventAction<'T>

Full Usage: UnstashAll EventAction<'T>

Parameters:
Item : EventAction<'T>

Instance members

Instance member Description

this.IsDeferEvent

Full Usage: this.IsDeferEvent

Returns: bool
Returns: bool

this.IsIgnoreEvent

Full Usage: this.IsIgnoreEvent

Returns: bool
Returns: bool

this.IsPersistEvent

Full Usage: this.IsPersistEvent

Returns: bool
Returns: bool

this.IsPublishEvent

Full Usage: this.IsPublishEvent

Returns: bool
Returns: bool

this.IsStash

Full Usage: this.IsStash

Returns: bool
Returns: bool

this.IsStateChangedEvent

Full Usage: this.IsStateChangedEvent

Returns: bool
Returns: bool

this.IsUnhandledEvent

Full Usage: this.IsUnhandledEvent

Returns: bool
Returns: bool

this.IsUnstash

Full Usage: this.IsUnstash

Returns: bool
Returns: bool

this.IsUnstashAll

Full Usage: this.IsUnstashAll

Returns: bool
Returns: bool

Type something to start searching.