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

Commit

Permalink
Merge pull request #4661 from MLoughry/4660
Browse files Browse the repository at this point in the history
Add method to get queue's dead letter queue
  • Loading branch information
amarzavery authored Jul 3, 2019
2 parents 8298d38 + 296fc3c commit 6e98ff6
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit 6e98ff6

Please sign in to comment.