Table of Contents

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 string

The name of the queue, or path of the subscription.

Returns

string

The path as a string of the dead letter entity.

FormatSubQueuePath(string, string)

Formats the subqueue path for either a queue, or a subscription.

public static string FormatSubQueuePath(string entityPath, string subQueueName)

Parameters

entityPath string

The name of the queue, or path of the subscription.

subQueueName string

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 string

The name of the topic, including slashes.

subscriptionName string

Returns

string

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

Returns

string