CommunicationRelayClient Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CommunicationRelayClient() |
Initializes a new instance of CommunicationRelayClient for mocking. |
CommunicationRelayClient(String) |
Initializes a new instance of CommunicationRelayClient. |
CommunicationRelayClient(String, CommunicationRelayClientOptions) |
Initializes a new instance of CommunicationRelayClient. |
CommunicationRelayClient(Uri, AzureKeyCredential, CommunicationRelayClientOptions) |
Initializes a new instance of CommunicationRelayClient. |
CommunicationRelayClient(Uri, TokenCredential, CommunicationRelayClientOptions) |
Initializes a new instance of CommunicationRelayClient. |
CommunicationRelayClient()
- Source:
- CommunicationRelayClient.cs
- Source:
- CommunicationRelayClient.cs
Initializes a new instance of CommunicationRelayClient for mocking.
protected CommunicationRelayClient ();
Protected Sub New ()
Applies to
CommunicationRelayClient(String)
- Source:
- CommunicationRelayClient.cs
- Source:
- CommunicationRelayClient.cs
Initializes a new instance of CommunicationRelayClient.
public CommunicationRelayClient (string connectionString);
new Azure.Communication.NetworkTraversal.CommunicationRelayClient : string -> Azure.Communication.NetworkTraversal.CommunicationRelayClient
Public Sub New (connectionString As String)
Parameters
- connectionString
- String
Connection string acquired from the Azure Communication Services resource.
Applies to
CommunicationRelayClient(String, CommunicationRelayClientOptions)
- Source:
- CommunicationRelayClient.cs
- Source:
- CommunicationRelayClient.cs
Initializes a new instance of CommunicationRelayClient.
public CommunicationRelayClient (string connectionString, Azure.Communication.NetworkTraversal.CommunicationRelayClientOptions options);
new Azure.Communication.NetworkTraversal.CommunicationRelayClient : string * Azure.Communication.NetworkTraversal.CommunicationRelayClientOptions -> Azure.Communication.NetworkTraversal.CommunicationRelayClient
Public Sub New (connectionString As String, options As CommunicationRelayClientOptions)
Parameters
- connectionString
- String
Connection string acquired from the Azure Communication Services resource.
- options
- CommunicationRelayClientOptions
Client option exposing Diagnostics, Retry, Transport, etc.
Applies to
CommunicationRelayClient(Uri, AzureKeyCredential, CommunicationRelayClientOptions)
- Source:
- CommunicationRelayClient.cs
- Source:
- CommunicationRelayClient.cs
Initializes a new instance of CommunicationRelayClient.
public CommunicationRelayClient (Uri endpoint, Azure.AzureKeyCredential keyCredential, Azure.Communication.NetworkTraversal.CommunicationRelayClientOptions options = default);
new Azure.Communication.NetworkTraversal.CommunicationRelayClient : Uri * Azure.AzureKeyCredential * Azure.Communication.NetworkTraversal.CommunicationRelayClientOptions -> Azure.Communication.NetworkTraversal.CommunicationRelayClient
Public Sub New (endpoint As Uri, keyCredential As AzureKeyCredential, Optional options As CommunicationRelayClientOptions = Nothing)
Parameters
- endpoint
- Uri
The URI of the Azure Communication Services resource.
- keyCredential
- AzureKeyCredential
The AzureKeyCredential used to authenticate requests.
- options
- CommunicationRelayClientOptions
Client option exposing Diagnostics, Retry, Transport, etc.
Applies to
CommunicationRelayClient(Uri, TokenCredential, CommunicationRelayClientOptions)
- Source:
- CommunicationRelayClient.cs
- Source:
- CommunicationRelayClient.cs
Initializes a new instance of CommunicationRelayClient.
public CommunicationRelayClient (Uri endpoint, Azure.Core.TokenCredential tokenCredential, Azure.Communication.NetworkTraversal.CommunicationRelayClientOptions options = default);
new Azure.Communication.NetworkTraversal.CommunicationRelayClient : Uri * Azure.Core.TokenCredential * Azure.Communication.NetworkTraversal.CommunicationRelayClientOptions -> Azure.Communication.NetworkTraversal.CommunicationRelayClient
Public Sub New (endpoint As Uri, tokenCredential As TokenCredential, Optional options As CommunicationRelayClientOptions = Nothing)
Parameters
- endpoint
- Uri
The URI of the Azure Communication Services resource.
- tokenCredential
- TokenCredential
The TokenCredential used to authenticate requests, such as DefaultAzureCredential.
- options
- CommunicationRelayClientOptions
Client option exposing Diagnostics, Retry, Transport, etc.
Applies to
Azure SDK for .NET