What is the topic path in microsoft service bus?
Asked Answered
P

2

6

For this method:

public static SubscriptionClient CreateFromConnectionString(string connectionString, string topicPath, string name)

What is the topicPath?

MSDN says it is "The full pathname of the topic."

What is the pathname?

There are code examples, but I have yet to find one that explain this little detail.

Pignut answered 28/3, 2017 at 19:41 Comment(0)
K
4

Topic path is the same string that was used as topic's name to create it. See examples here: https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-dotnet-how-to-use-topics-subscriptions

Note ASB names are subject to some limitations: https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quotas

Knead answered 28/3, 2017 at 20:30 Comment(1)
In the new Microsoft.Azure.ServiceBus libraries, there's now a EntityNameHelper class that will create these path names for you.Croatian
N
1

I found this question looking for the path to the subscription. When using a MessageReceiver, the subscription path is:

{topicName}/subscriptions/{subscriptionName}

So for just the topic path it should be simply

{topicName}

Nicolettenicoli answered 16/1, 2020 at 15:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.