Ejemplo n.º 1
0
        public ServiceBusQueueDispatcher(
            IServiceBusClientFactory clientFactory)
        {
            if (clientFactory is null)
            {
                throw new ArgumentNullException(nameof(clientFactory));
            }

            _client = clientFactory.Build();
        }
Ejemplo n.º 2
0
 public ServiceBusService(
     IServiceBusClientFactory serviceBusClientFactory,
     IOptions <ServiceBusOptions> options,
     ITopicRepository topicRepository,
     ILogger <ServiceBusService> logger)
 {
     _managementClient  = serviceBusClientFactory.Build();
     _serviceBusOptions = options.Value;
     _topicRepository   = topicRepository ?? throw new ArgumentNullException(nameof(topicRepository));
     _logger            = logger ?? throw new ArgumentNullException(nameof(logger));
 }