你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventSignal Class

Clients can connect to the event signal to receive events, or disconnect from the event signal to stop receiving events.

Constructor for internal use.

Constructor

EventSignal(obj, connection_changed_callback)

Parameters

Name Description
obj
Required
connection_changed_callback
Required

Methods

connect

Connects given callback function to the event signal, to be invoked when the event is signalled.

disconnect_all

Disconnects all registered callbacks.

is_connected
signal

connect

Connects given callback function to the event signal, to be invoked when the event is signalled.

connect(callback: Callable)

Parameters

Name Description
callback
Required

disconnect_all

Disconnects all registered callbacks.

disconnect_all()

is_connected

is_connected() -> bool

signal

signal(payload)

Parameters

Name Description
payload
Required