Share via


SipRoutingClient.GetRoutesAsync(CancellationToken) Method

Definition

Get List of configured SipTrunkRoute.

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Communication.PhoneNumbers.SipRouting.SipTrunkRoute>>> GetRoutesAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetRoutesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Communication.PhoneNumbers.SipRouting.SipTrunkRoute>>>
override this.GetRoutesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.Communication.PhoneNumbers.SipRouting.SipTrunkRoute>>>
Public Overridable Function GetRoutesAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of SipTrunkRoute)))

Parameters

cancellationToken
CancellationToken

Optional cancellation token.

Returns

List of configured routes.

Applies to