AbstractEventBusModuleService
admin/discounts.internal.AbstractEventBusModuleService
Implements
Properties
Accessors
eventToSubscribersMap
get
eventToSubscribersMap(): Map
<string
| symbol
, SubscriberDescriptor
[]>
Returns
Map
<string
| symbol
, SubscriberDescriptor
[]>
Methods
emit
Abstract
emit<T
>(eventName
, data
, options
): Promise
<void
>
T
objectRequiredParameters
eventName
stringRequireddata
TRequiredoptions
Record<string, unknown>RequiredReturns
Promise
<void
>
Promise
Promise<void>RequiredImplementation of
Abstract
emit<T
>(data
): Promise
<void
>
T
objectRequiredParameters
Returns
Promise
<void
>
Promise
Promise<void>RequiredImplementation of
storeSubscribers
Protected
storeSubscribers(«destructured»
): void
Parameters
__namedParameters
objectRequired__namedParameters.event
string | symbolRequired__namedParameters.subscriberId
stringRequiredReturns
void
void
voidsubscribe
subscribe(eventName
, subscriber
, context?
): AbstractEventBusModuleService
Parameters
Returns
Implementation of
IEventBusModuleService.subscribe
unsubscribe
unsubscribe(eventName
, subscriber
, context
): AbstractEventBusModuleService
Parameters
eventName
string | symbolRequiredReturns
Implementation of
Was this section helpful?