|
ChannelResourceStopDial Method |
Instructs the channel to stop a currently in progress
dial.
Namespace:
VoiceElements.Client
Assembly:
VoiceElementsClient (in VoiceElementsClient.dll) Version: 8.6.1.1
Syntax member StopDial : unit -> unit
Remarks
This method will tell the channel reousrce on which it is called to abort any
dial in progress.
Note that this will cause the
dial to return a
dial result of
"Failed."
Commonly Used from Another Thread
Most often your main thread will be waiting for a
dial result from a
dial
you have fired off. Therefore StopDial is normally called from another thread, such as a monitor or manager thread which has determined it needs to pull the dialing thread out for some reason.
Warning: Stop Dial Needs to be Called, Not Just Dispose
The
Dispose on a channel will not stop a dialing call. Make sure you call Stop Dial first to make sure channels get properly disposed.
Examples
The example below shows a sample collection of channels that would be stopped from another thread.
public void StopDialOnAllChannels()
{
List<ChannelResource>
ChannelList = new List<ChannelResource>();
foreach (ChannelResource cr in ChannelList)
{
cr.StopDial();
}
}
Public Sub StopDialOnAllChannels()
Dim ChannelList As New List(Of ChannelResource)()
For Each cr As ChannelResource In ChannelList
cr.StopDial()
Next
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also