CommunicationIceServer Constructor

Definition

Initializes a new instance of CommunicationIceServer.

public CommunicationIceServer (System.Collections.Generic.IEnumerable<string> urls, string username, string credential, Azure.Communication.NetworkTraversal.RouteType routeType);
new Azure.Communication.NetworkTraversal.CommunicationIceServer : seq<string> * string * string * Azure.Communication.NetworkTraversal.RouteType -> Azure.Communication.NetworkTraversal.CommunicationIceServer
Public Sub New (urls As IEnumerable(Of String), username As String, credential As String, routeType As RouteType)

Parameters

urls
IEnumerable<String>

List of STUN/TURN server URLs.

username
String

User account name which uniquely identifies the credentials.

credential
String

Credential for the server.

routeType
RouteType

The routing methodology to where the ICE server will be located from the client. "any" will have higher reliability while "nearest" will have lower latency. It is recommended to default to use the "any" routing method unless there are specific scenarios which minimizing latency is critical.

Exceptions

urls, username, or credential is null.

Applies to