HybridConnectionListener 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
HybridConnectionListener(String) |
Creates a new instance of HybridConnectionListener using the specified connection string. Use this overload only when AAD is not the method of authentication. |
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, and AAD is not the method of authentication. |
HybridConnectionListener(Uri, TokenProvider) |
Create a new HybridConnectionListener instance for accepting HybridConnections. |
HybridConnectionListener(String)
Creates a new instance of HybridConnectionListener using the specified connection string. Use this overload only when AAD is not the method of authentication.
public HybridConnectionListener (string connectionString);
new Microsoft.Azure.Relay.HybridConnectionListener : string -> Microsoft.Azure.Relay.HybridConnectionListener
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
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, and AAD is not the method of authentication.
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
- 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
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
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 this listener to ServiceBus.