Page Contents

Home > @loopback/core > LifeCycleObserverRegistry > invokeObserver

LifeCycleObserverRegistry.invokeObserver() method

Invoke an observer for the given event

Signature:

protected invokeObserver(observer: LifeCycleObserver, event: keyof LifeCycleObserver): Promise<void>;

Parameters

Parameter Type Description
observer LifeCycleObserver A life cycle observer
event keyof LifeCycleObserver Event name

Returns:

Promise<void>