public HangupCallAsync ( string callSid, HangupStyle style ) : IAsyncOperation |
||
callSid | string | The Sid of the call to hang up. |
style | HangupStyle | 'Canceled' will attempt to hangup calls that are queued or ringing but not affect calls already in progress. 'Completed' will attempt to hang up a call even if it's already in progress. |
Результат | IAsyncOperation |
public IAsyncOperation<Call> HangupCallAsync(string callSid, HangupStyle style)
{
return (IAsyncOperation<Call>)AsyncInfo.Run((System.Threading.CancellationToken ct) => HangupCallAsyncInternal(callSid, style));
}
private async Task<Call> HangupCallAsyncInternal(string callSid, HangupStyle style)