A incremunica actor for the creation of merge handlers for binding context keys.

Hierarchy

  • ActorMergeBindingsContext
    • ActorMergeBindingsContextIsAddition

Constructors

Properties

beforeActors: Actor<
    IActionMergeBindingsContext,
    IActorTest,
    IActorMergeBindingsContextOutput,
>[]

Actor that must be registered in the bus before this actor.

bus: Bus<
    Actor<
        IActionMergeBindingsContext,
        IActorTest,
        IActorMergeBindingsContextOutput,
    >,
    IActionMergeBindingsContext,
    IActorTest,
    IActorMergeBindingsContextOutput,
>

The bus this actor subscribes to.

name: string

The name for this actor.

{<rdf:subject>}

Methods

  • Parameters

    • context: IActionContext
    • Optionaldata: () => any

    Returns any

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Run the given action on this actor.

    In most cases, this method should not be called directly. Instead, #runObservable should be called.

    Parameters

    • _action: IActionMergeBindingsContext

    Returns Promise<IActorMergeBindingsContextOutput>

    A promise that resolves to the run result.

  • Run the given action on this actor AND invokes the Bus#onRun method.

    Parameters

    • action: IActionMergeBindingsContext

      The action to run.

    • sideData: undefined

    Returns Promise<IActorMergeBindingsContextOutput>

    A promise that resolves to the run result.

  • Get the logger from the given context.

    Parameters

    • context: IActionContext

      An optional context.

    Returns undefined | Logger

    The logger or undefined.