コード例 #1
0
 public UIServiceBus(IOptions <ServiceBusOptions> configuration)
 {
     _configuration = configuration.Value;
     _messages      = new List <Message>();
     _namespace     = ServiceBusNamespaceExtension.GetServiceBusNamespace(_configuration);
     EnsureTopicIsCreated();
 }
コード例 #2
0
        public ReceiveMessagesService(IOptions <ServiceBusOptions> configuration, ILogger logger)
        {
            _logger        = logger;
            _configuration = configuration.Value;
            _namespace     = ServiceBusNamespaceExtension.GetServiceBusNamespace(_configuration);

            EnsureTopicIsCreated();
            EnsureSubscriptionsIsCreated();
        }