Interface: ILifecycleAdapterEventHandler<TEvent, UResponse>
Interface: ILifecycleAdapterEventHandler<TEvent, UResponse>
ILifecycleAdapterEventHandler Interface.
Represents a lifecycle event handler with hooks for initialization, pre-handling, handling, and termination phases.
Template
UResponse
Type Parameters
TEvent
TEvent
extends IncomingEvent
UResponse
UResponse
extends OutgoingResponse
Properties
handle
handle: FunctionalAdapterEventHandler<TEvent, UResponse>;
onEventHandled()?
optional onEventHandled: () => Promiseable<void>;
Returns
Promiseable
<void
>
onHandlingEvent()?
optional onHandlingEvent: () => Promiseable<void>;
Returns
Promiseable
<void
>
onInit()?
optional onInit: () => Promiseable<void>;
Returns
Promiseable
<void
>
onTerminate()?
optional onTerminate: () => Promiseable<void>;
Returns
Promiseable
<void
>