skip to Main Content

Rewrite dispose of Azure Service bus

I have a class called ServiceBusBackgroundJobManager, it sends messages to Azure service bus public class ServiceBusBackgroundJobManager : BackgroundWorkerBase, IBackgroundJobManager { private readonly IAppConfigurationAccessor _configurationAccessor; private readonly ServiceBusClient _client; private ServiceBusSender _sender; private readonly string _serviceBusQueueName; public ServiceBusBackgroundJobManager(IAppConfigurationAccessor configurationAccessor) { _configurationAccessor…

VIEW QUESTION

Azure queue trigger with custom connection name

I have an Azure functions application (.net8, isolated model). There is a queue trigger working pretty good with internal application storage. It looks like this: [Function(nameof(InnerStorageTrigger))] public void InnerStorageTrigger([QueueTrigger("test-queue-inner")] QueueMessage message) { _logger.LogInformation($"Inner message: {message.MessageText}"); } But I also need…

VIEW QUESTION
Back To Top
Search