微软服务总线中的主题路径是什么?

What is the topic path in microsoft service bus?

对于此方法:

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

topicPath 是什么?

MSDN 说是 "The full pathname of the topic."

路径名是什么?

有代码示例,但我还没有找到一个可以解释这个小细节的示例。

主题路径与创建它时用作主题名称的字符串相同。请参阅此处的示例:https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-dotnet-how-to-use-topics-subscriptions

注意 ASB 名称有一些限制:https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quotas

我在寻找订阅路径时发现了这个问题。使用MessageReceiver时,订阅路径为:

{topicName}/subscriptions/{subscriptionName}

所以对于主题路径,它应该只是

{topicName}