Share via


CallAutomationClient.ConnectCallAsync Method

Definition

Overloads

ConnectCallAsync(ConnectCallOptions, CancellationToken)

Create a connect request.

ConnectCallAsync(CallLocator, Uri, CancellationToken)

Create a connect request.

ConnectCallAsync(ConnectCallOptions, CancellationToken)

Source:
CallAutomationClient.cs

Create a connect request.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.ConnectCallResult>> ConnectCallAsync (Azure.Communication.CallAutomation.ConnectCallOptions connectCallOptions, System.Threading.CancellationToken cancellationToken = default);
abstract member ConnectCallAsync : Azure.Communication.CallAutomation.ConnectCallOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.ConnectCallResult>>
override this.ConnectCallAsync : Azure.Communication.CallAutomation.ConnectCallOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.ConnectCallResult>>
Public Overridable Function ConnectCallAsync (connectCallOptions As ConnectCallOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ConnectCallResult))

Parameters

connectCallOptions
ConnectCallOptions

ConnectOptions for connect request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

connectCallOptions is null.

connectCallOptions CallbackUrl is not formatted correctly.

The server returned an error. See Message for details returned from the server.

Applies to

ConnectCallAsync(CallLocator, Uri, CancellationToken)

Source:
CallAutomationClient.cs

Create a connect request.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.ConnectCallResult>> ConnectCallAsync (Azure.Communication.CallAutomation.CallLocator callLocator, Uri callbackUri, System.Threading.CancellationToken cancellationToken = default);
abstract member ConnectCallAsync : Azure.Communication.CallAutomation.CallLocator * Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.ConnectCallResult>>
override this.ConnectCallAsync : Azure.Communication.CallAutomation.CallLocator * Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.ConnectCallResult>>
Public Overridable Function ConnectCallAsync (callLocator As CallLocator, callbackUri As Uri, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ConnectCallResult))

Parameters

callLocator
CallLocator
callbackUri
Uri
cancellationToken
CancellationToken

Returns

Exceptions

callLocator is null.

callbackUri callbackUrl is not formatted correctly or empty.

The server returned an error. See Message for details returned from the server.

Applies to