HybridConnectionListener Constructors

Definition

Overloads

HybridConnectionListener(String)

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

HybridConnectionListener(String, String)

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

HybridConnectionListener(Uri, TokenProvider)

Create a new HybridConnectionListener instance for accepting HybridConnections.

HybridConnectionListener(String)

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

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

Parameters

connectionString
System.String

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

Exceptions

System.ArgumentException

Thrown when the format of the connectionString parameter is incorrect.

Applies to

HybridConnectionListener(String, String)

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

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

Parameters

connectionString
System.String

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

path
System.String

The path to the HybridConnection.

Exceptions

System.ArgumentException

Thrown when the format of the connectionString parameter is incorrect.

Applies to

HybridConnectionListener(Uri, TokenProvider)

Create a new HybridConnectionListener instance for accepting HybridConnections.

public HybridConnectionListener (Uri address, Microsoft.Azure.Relay.TokenProvider tokenProvider);
new Microsoft.Azure.Relay.HybridConnectionListener : Uri * Microsoft.Azure.Relay.TokenProvider -> Microsoft.Azure.Relay.HybridConnectionListener

Parameters

address
System.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 this listener to ServiceBus.

Applies to