Class EntityNameHelper
- Namespace
- Microsoft.Azure.ServiceBus
- Assembly
- Microsoft.Azure.ServiceBus.dll
This class can be used to format the path for different Service Bus entity types.
public static class EntityNameHelper
- Inheritance
-
EntityNameHelper
- Inherited Members
Methods
FormatDeadLetterPath(string)
Formats the dead letter path for either a queue, or a subscription.
public static string FormatDeadLetterPath(string entityPath)
Parameters
entityPath
stringThe name of the queue, or path of the subscription.
Returns
- string
The path as a string of the dead letter entity.
FormatRulePath(string, string, string)
Formats the rule path, based on the topic path, subscription name and rule name.
public static string FormatRulePath(string topicPath, string subscriptionName, string ruleName)
Parameters
topicPath
stringThe name of the topic, including slashes.
subscriptionName
stringThe name of the subscription.
ruleName
stringThe name of the rule
Returns
FormatSubQueuePath(string, string)
Formats the subqueue path for either a queue, or a subscription.
public static string FormatSubQueuePath(string entityPath, string subQueueName)
Parameters
Returns
- string
The path as a string of the subqueue entity.
FormatSubscriptionPath(string, string)
Formats the subscription path, based on the topic path and subscription name.
public static string FormatSubscriptionPath(string topicPath, string subscriptionName)
Parameters
topicPath
stringThe name of the topic, including slashes.
subscriptionName
stringThe name of the subscription.
Returns
FormatTransferDeadLetterPath(string)
Utility method that creates the name for the transfer dead letter receiver, specified by entityPath
public static string FormatTransferDeadLetterPath(string entityPath)
Parameters
entityPath
string