Click or drag to resize
TapiCallWaitUntilDone Method
Waits until either all pending speak and play requests have completed or the specified time interval has elapsed.

Namespace: Traysoft.AddTapi
Assembly: Traysoft.AddTapi (in Traysoft.AddTapi.dll) Version: 6.0.0.1110
Syntax
public bool WaitUntilDone(
	int timeoutSeconds
)

Parameters

timeoutSeconds
Type: SystemInt32
Timeout period in seconds.

Return Value

Type: Boolean
True if all pending speak and play requests completed withing the specified time interval.
Exceptions
ExceptionCondition
TapiDisconnectExceptionThe call has been disconnected while waiting for speak and play requests to be completed.
Remarks
When the application calls Speak(String, Boolean) or Play(String, Boolean), speak and play requests are added to the queue. AddTapi.NET plays and speaks queued play and speak requests in the same order they were queued. The application can use WaitUntilDone method to wait until all pending speak and play requests have completed.
See Also