CommunicationRelayConfiguration Constructor

Definition

Initializes a new instance of CommunicationRelayConfiguration.

public CommunicationRelayConfiguration (DateTimeOffset expiresOn, System.Collections.Generic.IEnumerable<Azure.Communication.NetworkTraversal.CommunicationIceServer> iceServers);
new Azure.Communication.NetworkTraversal.CommunicationRelayConfiguration : DateTimeOffset * seq<Azure.Communication.NetworkTraversal.CommunicationIceServer> -> Azure.Communication.NetworkTraversal.CommunicationRelayConfiguration
Public Sub New (expiresOn As DateTimeOffset, iceServers As IEnumerable(Of CommunicationIceServer))

Parameters

expiresOn
DateTimeOffset

The date for which the username and credentials are not longer valid. Will be 48 hours from request time.

iceServers
IEnumerable<CommunicationIceServer>

An array representing the credentials and the STUN/TURN server URLs for use in ICE negotiations.

Exceptions

iceServers is null.

Applies to