IEventSource interface

Extends

Properties

metadata

Methods

attach((event: TEvent) => void)
attachListener(IEventListener<TEvent>)
dispose(string)

Performs cleanup operations on this instance

isDisposed()
onEvent(TEvent)

Property Details

metadata

metadata: IStringDictionary<string>

Property Value

Method Details

attach((event: TEvent) => void)

function attach(onEventCallback: (event: TEvent) => void)

Parameters

onEventCallback

(event: TEvent) => void

Returns

attachListener(IEventListener<TEvent>)

function attachListener(listener: IEventListener<TEvent>)

Parameters

listener

IEventListener<TEvent>

Returns

dispose(string)

Performs cleanup operations on this instance

function dispose(reason?: string)

Parameters

reason

string

isDisposed()

function isDisposed()

Returns

boolean

onEvent(TEvent)

function onEvent(e: TEvent)

Parameters

e

TEvent