TopicClient 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
TopicClient(ServiceBusConnectionStringBuilder, RetryPolicy) |
Instantiates a new TopicClient to perform operations on a topic. |
TopicClient(ServiceBusConnection, String, RetryPolicy) |
Creates a new instance of the Topic client on a given ServiceBusConnection |
TopicClient(String, String, RetryPolicy) |
Instantiates a new TopicClient to perform operations on a topic. |
TopicClient(String, String, ITokenProvider, TransportType, RetryPolicy) |
Creates a new instance of the Topic client using the specified endpoint, entity path, and token provider. |
TopicClient(ServiceBusConnectionStringBuilder, RetryPolicy)
- Source:
- TopicClient.cs
Instantiates a new TopicClient to perform operations on a topic.
public TopicClient (Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder connectionStringBuilder, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy = default);
new Microsoft.Azure.ServiceBus.TopicClient : Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.TopicClient
Public Sub New (connectionStringBuilder As ServiceBusConnectionStringBuilder, Optional retryPolicy As RetryPolicy = Nothing)
Parameters
- connectionStringBuilder
- ServiceBusConnectionStringBuilder
ServiceBusConnectionStringBuilder having namespace and topic information.
- retryPolicy
- RetryPolicy
Retry policy for topic operations. Defaults to Default
Remarks
Creates a new connection to the topic, which is opened during the first send operation.
Applies to
TopicClient(ServiceBusConnection, String, RetryPolicy)
- Source:
- TopicClient.cs
Creates a new instance of the Topic client on a given ServiceBusConnection
public TopicClient (Microsoft.Azure.ServiceBus.ServiceBusConnection serviceBusConnection, string entityPath, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy);
new Microsoft.Azure.ServiceBus.TopicClient : Microsoft.Azure.ServiceBus.ServiceBusConnection * string * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.TopicClient
Public Sub New (serviceBusConnection As ServiceBusConnection, entityPath As String, retryPolicy As RetryPolicy)
Parameters
- serviceBusConnection
- ServiceBusConnection
Connection object to the service bus namespace.
- entityPath
- String
Topic path.
- retryPolicy
- RetryPolicy
Retry policy for topic operations. Defaults to Default
Applies to
TopicClient(String, String, RetryPolicy)
- Source:
- TopicClient.cs
Instantiates a new TopicClient to perform operations on a topic.
public TopicClient (string connectionString, string entityPath, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy = default);
new Microsoft.Azure.ServiceBus.TopicClient : string * string * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.TopicClient
Public Sub New (connectionString As String, entityPath As String, Optional retryPolicy As RetryPolicy = Nothing)
Parameters
- connectionString
- String
Namespace connection string. Must not contain topic information.
- entityPath
- String
Path to the topic
- retryPolicy
- RetryPolicy
Retry policy for topic operations. Defaults to Default
Remarks
Creates a new connection to the topic, which is opened during the first send operation.
Applies to
TopicClient(String, String, ITokenProvider, TransportType, RetryPolicy)
- Source:
- TopicClient.cs
Creates a new instance of the Topic client using the specified endpoint, entity path, and token provider.
public TopicClient (string endpoint, string entityPath, Microsoft.Azure.ServiceBus.Primitives.ITokenProvider tokenProvider, Microsoft.Azure.ServiceBus.TransportType transportType = Microsoft.Azure.ServiceBus.TransportType.Amqp, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy = default);
new Microsoft.Azure.ServiceBus.TopicClient : string * string * Microsoft.Azure.ServiceBus.Primitives.ITokenProvider * Microsoft.Azure.ServiceBus.TransportType * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.TopicClient
Public Sub New (endpoint As String, entityPath As String, tokenProvider As ITokenProvider, Optional transportType As TransportType = Microsoft.Azure.ServiceBus.TransportType.Amqp, Optional retryPolicy As RetryPolicy = Nothing)
Parameters
- endpoint
- String
Fully qualified domain name for Service Bus. Most likely, {yournamespace}.servicebus.windows.net
- entityPath
- String
Topic path.
- tokenProvider
- ITokenProvider
Token provider which will generate security tokens for authorization.
- transportType
- TransportType
Transport type.
- retryPolicy
- RetryPolicy
Retry policy for topic operations. Defaults to Default
Remarks
Creates a new connection to the topic, which is opened during the first send operation.
Applies to
Azure SDK for .NET