ServiceBusConnection Class
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.
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
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기