Share via


ServiceBusConnection Class

Definition

Connection object to service bus namespace

public class ServiceBusConnection
type ServiceBusConnection = class
Public Class ServiceBusConnection
Inheritance
ServiceBusConnection

Constructors

ServiceBusConnection(ServiceBusConnectionStringBuilder)

Creates a new connection to service bus.

ServiceBusConnection(String)

Creates a new connection to service bus.

ServiceBusConnection(String, RetryPolicy)

Creates a new connection to service bus.

ServiceBusConnection(String, TimeSpan, RetryPolicy)
Obsolete.

Creates a new connection to service bus.

ServiceBusConnection(String, TransportType, RetryPolicy)

Creates a new connection to service bus.

Properties

ConnectionIdleTimeout

ConnectionIdleTimeout is applied when a connection recevies no traffic for a certain period of time. In some situations, underlying transport layer takes really long time to detect a socket error and it may cause some operations to time out after a long wait. This timeout helps to detect and close an idle connection without waiting for the network layer to identify a socket error. But this setting may result in some increased heartbeat traffic between the client and service.

Endpoint

Fully qualified domain name for Service Bus.

IsClosedOrClosing

Returns true if the Service Bus Connection is closed or closing.

OperationTimeout

OperationTimeout is applied in erroneous situations to notify the caller about the relevant ServiceBusException

RetryPolicy

Retry policy for operations performed on the connection.

TokenProvider

Token provider for authentication. TokenProvider

TransportType

Get the transport type from the connection string. Available options: Amqp and AmqpWebSockets.

Methods

CloseAsync()

Closes the connection.

Applies to