public ServiceBusQueueDispatcher( IServiceBusClientFactory clientFactory) { if (clientFactory is null) { throw new ArgumentNullException(nameof(clientFactory)); } _client = clientFactory.Build(); }
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)); }