Skip to main content
Skip to main content

IEventBusService

Methods

subscribe

Parameters

eventNamestring | symbolRequired
subscriberSubscriberRequired

Returns

thisthisRequired

unsubscribe

Parameters

eventNamestring | symbolRequired
subscriberSubscriberRequired

Returns

thisthisRequired

emit

**emit**<TypeParameter T>(event, data, options?): Promise&#60;unknown&#62;

Type Parameters

TobjectRequired

Parameters

eventstringRequired
dataTRequired
optionsunknown

Returns

PromisePromise<unknown>Required

**emit**<TypeParameter T>(data): Promise&#60;unknown&#62;

Type Parameters

TobjectRequired

Parameters

dataEmitData<T>[]Required

Returns

PromisePromise<unknown>Required

**emit**<TypeParameter T>(data): Promise&#60;unknown&#62;

Type Parameters

TobjectRequired

Parameters

dataMessage<T>[]Required

Returns

PromisePromise<unknown>Required

withTransaction

Parameters

transactionManagerEntityManager

Returns

thisthisRequired
Was this section helpful?