Function getDispatcher

  • Helper to get a Dispatcher.

    // Create a communication layer:
    const communicator = getLayer("event");
    // Now create the Dispatcher.
    const dispatcher = getDispatcher({communicator});

    Export

    Returns

    The dispatcher.

    Parameters

    • dispatcherOptions: INopeDispatcherOptions

      The options, that will be used for the dispatcher.

    • Optional options: TAdditionalOptions = {}

      Options. You can provide a different Dispatcher-Class; Controll the scope (Singleton or not.) and define wehter the Base-Services should be added etc. see TAdditionalOptions

    Returns INopeDispatcher

Generated using TypeDoc