TopicClient Constructors

Definition

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)

Instantiates a new TopicClient to perform operations on a topic.

public TopicClient (Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder connectionStringBuilder, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy = null);
new Microsoft.Azure.ServiceBus.TopicClient : Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.TopicClient

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.

TopicClient(ServiceBusConnection, String, RetryPolicy)

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

Parameters

serviceBusConnection
ServiceBusConnection

Connection object to the service bus namespace.

entityPath
String

Topic path.

retryPolicy
RetryPolicy

Retry policy for topic operations. Defaults to Default

TopicClient(String, String, RetryPolicy)

Instantiates a new TopicClient to perform operations on a topic.

public TopicClient (string connectionString, string entityPath, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy = null);
new Microsoft.Azure.ServiceBus.TopicClient : string * string * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.TopicClient

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.

TopicClient(String, String, ITokenProvider, TransportType, RetryPolicy)

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 = null);
new Microsoft.Azure.ServiceBus.TopicClient : string * string * Microsoft.Azure.ServiceBus.Primitives.ITokenProvider * Microsoft.Azure.ServiceBus.TransportType * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.TopicClient

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