Udostępnij za pośrednictwem


HybridConnectionClient Constructors

Definition

Overloads

HybridConnectionClient(String)

Creates a new instance of HybridConnectionClient using the specified connection string.

HybridConnectionClient(Uri)

Create a new HybridConnectionClient instance for initiating HybridConnections where no client authentication is required.

HybridConnectionClient(String, String)

Creates a new instance of HybridConnectionClient from a connection string and the specified HybridConection path. Use this overload only when the connection string does not use the EntityPath property.

HybridConnectionClient(Uri, TokenProvider)

Create a new HybridConnectionClient instance for initiating HybridConnections with client authentication.

HybridConnectionClient(String)

Creates a new instance of HybridConnectionClient using the specified connection string.

public HybridConnectionClient (string connectionString);
new Microsoft.Azure.Relay.HybridConnectionClient : string -> Microsoft.Azure.Relay.HybridConnectionClient
Public Sub New (connectionString As String)

Parameters

connectionString
String

The connection string to use. This connection string must include the EntityPath property.

Exceptions

Thrown when the format of the connectionString parameter is incorrect.

Applies to

HybridConnectionClient(Uri)

Create a new HybridConnectionClient instance for initiating HybridConnections where no client authentication is required.

public HybridConnectionClient (Uri address);
new Microsoft.Azure.Relay.HybridConnectionClient : Uri -> Microsoft.Azure.Relay.HybridConnectionClient
Public Sub New (address As Uri)

Parameters

address
Uri

The address on which to listen for HybridConnections. This address should be of the format "sb://contoso.servicebus.windows.net/yourhybridconnection".

Applies to

HybridConnectionClient(String, String)

Creates a new instance of HybridConnectionClient from a connection string and the specified HybridConection path. Use this overload only when the connection string does not use the EntityPath property.

public HybridConnectionClient (string connectionString, string path);
new Microsoft.Azure.Relay.HybridConnectionClient : string * string -> Microsoft.Azure.Relay.HybridConnectionClient
Public Sub New (connectionString As String, path As String)

Parameters

connectionString
String

The connection string used. This connection string must not include the EntityPath property.

path
String

The path to the HybridConnection.

Exceptions

Thrown when the format of the connectionString parameter is incorrect.

Applies to

HybridConnectionClient(Uri, TokenProvider)

Create a new HybridConnectionClient instance for initiating HybridConnections with client authentication.

public HybridConnectionClient (Uri address, Microsoft.Azure.Relay.TokenProvider tokenProvider);
new Microsoft.Azure.Relay.HybridConnectionClient : Uri * Microsoft.Azure.Relay.TokenProvider -> Microsoft.Azure.Relay.HybridConnectionClient
Public Sub New (address As Uri, tokenProvider As TokenProvider)

Parameters

address
Uri

The address on which to listen for HybridConnections. This address should be of the format "sb://contoso.servicebus.windows.net/yourhybridconnection".

tokenProvider
TokenProvider

The TokenProvider for connecting to ServiceBus.

Applies to