Twilio.TwilioRestClient.HangupCallAsync C# (CSharp) Method

HangupCallAsync() public method

Hangs up a call in progress. Makes a POST request to a Call Instance resource.
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.
return 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)