Skip to main content
Skip to main content

IEventBusService

admin/discounts.internal.IEventBusService

Implemented by

Methods

emit

emit<T>(event, data, options?): Promise<unknown>

TobjectRequired

Parameters

eventstringRequired
dataTRequired
optionsunknown

Returns

Promise<unknown>

PromisePromise<unknown>Required

subscribe

subscribe(eventName, subscriber, context?): IEventBusService

Parameters

eventNamestring | symbolRequired
subscriberSubscriberRequired

Returns

IEventBusService

IEventBusServiceIEventBusServiceRequired

unsubscribe

unsubscribe(eventName, subscriber, context?): IEventBusService

Parameters

eventNamestring | symbolRequired
subscriberSubscriberRequired

Returns

IEventBusService

IEventBusServiceIEventBusServiceRequired

withTransaction

withTransaction(transactionManager?): IEventBusService

Parameters

transactionManagerEntityManager

Returns

IEventBusService

IEventBusServiceIEventBusServiceRequired

Inherited from

ITransactionBaseService.withTransaction

Was this section helpful?