Stone.js API
    Preparing search index...

    Interface ILifecycleAdapterEventHandler<TEvent, UResponse>

    ILifecycleAdapterEventHandler Interface.

    Represents a lifecycle event handler with hooks for initialization, pre-handling, handling, and termination phases.

    UResponse

    interface ILifecycleAdapterEventHandler<
        TEvent extends IncomingEvent,
        UResponse extends OutgoingResponse,
    > {
        handle: FunctionalAdapterEventHandler<TEvent, UResponse>;
        onEvent?: () => Promiseable<void>;
        onEventHandled?: () => Promiseable<void>;
        onHandlingEvent?: () => Promiseable<void>;
        onInit?: () => Promiseable<void>;
        onTerminate?: () => Promiseable<void>;
    }

    Type Parameters

    Implemented by

    Index
    onEvent?: () => Promiseable<void>
    onEventHandled?: () => Promiseable<void>
    onHandlingEvent?: () => Promiseable<void>
    onInit?: () => Promiseable<void>
    onTerminate?: () => Promiseable<void>