Share via


CallAutomationClient.ConnectCall Method

Definition

Overloads

ConnectCall(ConnectCallOptions, CancellationToken)

Create a connect request.

ConnectCall(CallLocator, Uri, CancellationToken)

Create a connect request.

ConnectCall(ConnectCallOptions, CancellationToken)

Source:
CallAutomationClient.cs

Create a connect request.

public virtual Azure.Response<Azure.Communication.CallAutomation.ConnectCallResult> ConnectCall (Azure.Communication.CallAutomation.ConnectCallOptions connectCallOptions, System.Threading.CancellationToken cancellationToken = default);
abstract member ConnectCall : Azure.Communication.CallAutomation.ConnectCallOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.ConnectCallResult>
override this.ConnectCall : Azure.Communication.CallAutomation.ConnectCallOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.ConnectCallResult>
Public Overridable Function ConnectCall (connectCallOptions As ConnectCallOptions, Optional cancellationToken As CancellationToken = Nothing) As 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

ConnectCall(CallLocator, Uri, CancellationToken)

Source:
CallAutomationClient.cs

Create a connect request.

public virtual Azure.Response<Azure.Communication.CallAutomation.ConnectCallResult> ConnectCall (Azure.Communication.CallAutomation.CallLocator callLocator, Uri callbackUri, System.Threading.CancellationToken cancellationToken = default);
abstract member ConnectCall : Azure.Communication.CallAutomation.CallLocator * Uri * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.ConnectCallResult>
override this.ConnectCall : Azure.Communication.CallAutomation.CallLocator * Uri * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.CallAutomation.ConnectCallResult>
Public Overridable Function ConnectCall (callLocator As CallLocator, callbackUri As Uri, Optional cancellationToken As CancellationToken = Nothing) As 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