public UIServiceBus(IOptions <ServiceBusOptions> configuration) { _configuration = configuration.Value; _messages = new List <Message>(); _namespace = ServiceBusNamespaceExtension.GetServiceBusNamespace(_configuration); EnsureTopicIsCreated(); }
public ReceiveMessagesService(IOptions <ServiceBusOptions> configuration, ILogger logger) { _logger = logger; _configuration = configuration.Value; _namespace = ServiceBusNamespaceExtension.GetServiceBusNamespace(_configuration); EnsureTopicIsCreated(); EnsureSubscriptionsIsCreated(); }