property EventsCallMode: TScEventCallMode; default ecDirectly;

 

Description

The EventsCallMode property determines how the event handler will be called. Data coming from the server is processed in a separate thread of the HubConnection connection, while the event handler can be invoked in a different way for synchronization with the main thread of the application.

The default value is ecAsynchronous: events are added to a queue and then asynchronously synchronized with the main thread. This prevents a slowdown in the thread where events occur, and at the same allows calling the event handlers in the main thread.

When the property is set to ecSynchronous, the event call is immediately synchronized with the main thread.

When the property is set to ecDirectly , no synchronization occurs with the main thread.

The default value is ecDirectly.

 

See also

AfterDisconnect

AfterReconnect

BeforeReconnect

Register

SecureBridge Components, Copyright © 2007-2021 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support