Interface ITopicClient
- Namespace
- Microsoft.Azure.ServiceBus
- Assembly
- Microsoft.Azure.ServiceBus.dll
TopicClient can be used for all basic interactions with a Service Bus topic.
public interface ITopicClient : ISenderClient, IClientEntity
- Inherited Members
Examples
Create a new TopicClient
ITopicClient topicClient = new TopicClient(
namespaceConnectionString,
topicName,
RetryExponential);
Send a message to the topic:
byte[] data = GetData();
await topicClient.SendAsync(data);
Properties
TopicName
Gets the name of the topic.
string TopicName { get; }