Add method to get queue's dead letter queue

Fixes #4660
This commit is contained in:
OWA Framework 2019-02-08 13:35:56 -08:00
Родитель bffae85371
Коммит b808c33b01
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -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.
*