Click or drag to resize
TapiAppReInit Event
Notifies the application that TAPI system has requested re-initialization.

Namespace: Traysoft.AddTapi
Assembly: Traysoft.AddTapi (in Traysoft.AddTapi.dll) Version: 6.0.0.1110
Syntax
public static event TapiEventHandler ReInit

Value

Type: Traysoft.AddTapiTapiEventHandler
Remarks

ReInit event is fired when a line device configuration has changed, and the application should re-initialize its use of TAPI to become aware of these changes. Upon receiving this event, the application should call Shutdown followed by Initialize(String) as soon as possible.

After ReInit event is fired, all AddTapi.NET methods will return an error until the application re-initializes TAPI. After re-initialization all references to AddTapi.NET object, including TapiLine, TapiAddress and TapiCall objects, will become invalid. After re-initialization the application has to obtain new lines from the Lines collection and call Open(Boolean, TapiCallHandler) to open the lines again.

The application might receive multiple ReInit events. All subsequent ReInit events must be ignored until TAPI is re-initialized by calling Shutdown followed by Initialize(String).

Note Note
The application cannot call Shutdown and Initialize(String) from the ReInit event handler. Those methods have to be called on the main thread of the application. The ReInit event handler should set a flag that re-initialization is required and exit immediately.
See Also