private void BuildAndRegisterQueue(QueueOptions options, ServiceBusOptions parentOptions)
        {
            var queue = new QueueWrapper(options, parentOptions, _provider);

            queue.Initialize();

            _registry.Register(queue);
        }
        private async Task CloseQueueAsync(QueueWrapper queue)
        {
            if (queue.QueueClient.IsClosedOrClosing)
            {
                return;
            }

            try
            {
                await queue.QueueClient.CloseAsync();
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, $"Closing of QueueClient {queue.Name} failed");
            }
        }
Esempio n. 3
0
 internal void Register(QueueWrapper queue)
 {
     _queues.Add(queue.Name, queue);
 }