TapiCallWaitUntilDone Method |
Waits until either all pending speak and play requests have completed or the specified time interval has elapsed.
Namespace: Traysoft.AddTapiAssembly: Traysoft.AddTapi (in Traysoft.AddTapi.dll) Version: 6.0.0.1110
Syntax public bool WaitUntilDone(
int timeoutSeconds
)
Public Function WaitUntilDone (
timeoutSeconds As Integer
) As Boolean
public:
bool WaitUntilDone(
int timeoutSeconds
)
Parameters
- timeoutSeconds
- Type: SystemInt32
Timeout period in seconds.
Return Value
Type:
BooleanTrue if all pending speak and play requests completed withing the specified time interval.
Exceptions Exception | Condition |
---|
TapiDisconnectException | The 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