Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Add method to get queue's dead letter queue #4661

Merged
merged 2 commits into from
Jul 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/services/serviceBus/lib/servicebusservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,16 @@ ServiceBusService.prototype.deleteQueue = function (queuePath, callback) {
this._deleteResource(queuePath, callback);
};

/**
* Formats a queue path to point towards its dead letter queue.
*
* @param {string} queuePath A string object that represents the name of the queue whose dead letter path you want.
* @return {string} The path to the queue's dead letter queue
*/
ServiceBusService.prototype.formatDeadLetterPath = function (queuePath) {
return `${queuePath}/$DeadLetterQueue`;
};

/**
* Retrieves a queue.
*
Expand Down