ServiceBusConnection ServiceBusConnection ServiceBusConnection Constructors

Definition

Overloads

ServiceBusConnection(ServiceBusConnectionStringBuilder) ServiceBusConnection(ServiceBusConnectionStringBuilder) ServiceBusConnection(ServiceBusConnectionStringBuilder)

Creates a new connection to service bus.

ServiceBusConnection(String) ServiceBusConnection(String) ServiceBusConnection(String)

Creates a new connection to service bus.

ServiceBusConnection(String, RetryPolicy) ServiceBusConnection(String, RetryPolicy)

Creates a new connection to service bus.

ServiceBusConnection(String, TransportType, RetryPolicy) ServiceBusConnection(String, TransportType, RetryPolicy)

Creates a new connection to service bus.

ServiceBusConnection(String, TimeSpan, RetryPolicy) ServiceBusConnection(String, TimeSpan, RetryPolicy)

Creates a new connection to service bus.

ServiceBusConnection(ServiceBusConnectionStringBuilder) ServiceBusConnection(ServiceBusConnectionStringBuilder) ServiceBusConnection(ServiceBusConnectionStringBuilder)

Creates a new connection to service bus.

public ServiceBusConnection (Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder connectionStringBuilder);
new Microsoft.Azure.ServiceBus.ServiceBusConnection : Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder -> Microsoft.Azure.ServiceBus.ServiceBusConnection
Public Sub New (connectionStringBuilder As ServiceBusConnectionStringBuilder)

Parameters

Remarks

It is the responsibility of the user to close the connection after use through CloseAsync()

ServiceBusConnection(String) ServiceBusConnection(String) ServiceBusConnection(String)

Creates a new connection to service bus.

public ServiceBusConnection (string namespaceConnectionString);
new Microsoft.Azure.ServiceBus.ServiceBusConnection : string -> Microsoft.Azure.ServiceBus.ServiceBusConnection
Public Sub New (namespaceConnectionString As String)

Parameters

namespaceConnectionString
String String String

Namespace connection string

Remarks

It is the responsibility of the user to close the connection after use through CloseAsync()

ServiceBusConnection(String, RetryPolicy) ServiceBusConnection(String, RetryPolicy)

Creates a new connection to service bus.

public ServiceBusConnection (string namespaceConnectionString, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy = null);
new Microsoft.Azure.ServiceBus.ServiceBusConnection : string * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.ServiceBusConnection

Parameters

namespaceConnectionString
String String String

Namespace connection string.

retryPolicy
RetryPolicy RetryPolicy RetryPolicy

Retry policy for operations. Defaults to Default

Remarks

It is the responsibility of the user to close the connection after use through CloseAsync()

ServiceBusConnection(String, TransportType, RetryPolicy) ServiceBusConnection(String, TransportType, RetryPolicy)

Creates a new connection to service bus.

public ServiceBusConnection (string endpoint, Microsoft.Azure.ServiceBus.TransportType transportType, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy = null);
new Microsoft.Azure.ServiceBus.ServiceBusConnection : string * Microsoft.Azure.ServiceBus.TransportType * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.ServiceBusConnection

Parameters

endpoint
String String String

Fully qualified domain name for Service Bus. Most likely, {yournamespace}.servicebus.windows.net

transportType
TransportType TransportType TransportType

Transport type.

retryPolicy
RetryPolicy RetryPolicy RetryPolicy

Retry policy for operations. Defaults to Default

ServiceBusConnection(String, TimeSpan, RetryPolicy) ServiceBusConnection(String, TimeSpan, RetryPolicy)

Warning

This API is now obsolete.

Creates a new connection to service bus.

[System.Obsolete("This constructor is obsolete. Use ServiceBusConnection(string namespaceConnectionString, RetryPolicy retryPolicy) constructor instead, providing operationTimeout in the connection string.")]
public ServiceBusConnection (string namespaceConnectionString, TimeSpan operationTimeout, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy = null);
new Microsoft.Azure.ServiceBus.ServiceBusConnection : string * TimeSpan * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.ServiceBusConnection

Parameters

namespaceConnectionString
String String String

Namespace connection string.

operationTimeout
TimeSpan TimeSpan TimeSpan

Duration after which individual operations will timeout.

retryPolicy
RetryPolicy RetryPolicy RetryPolicy

Retry policy for operations. Defaults to Default

Remarks

It is the responsibility of the user to close the connection after use through CloseAsync()

Applies to