Beispiel #1
0
        private void InitializeCentralQueueSender(string currentQueuePath)
        {
            var centralQueueName    = _settingsProvider.GetCentralMessageQueueName();
            var centralQueueMachine = _settingsProvider.GetCentralMessageQueueMachine();
            var centralQueuePath    = MessageQueueHelper.GetQueuePath(centralQueueName, centralQueueMachine);

            _msmqSender = _msmqFactory.GetSender(centralQueuePath);
            _msmqSender.Send(new AddSubscriberMessage
            {
                SubscriberQueue = currentQueuePath
            });
        }
Beispiel #2
0
 public void AddSubscriber(string queuePath)
 {
     _msmqSenders.Add(_msmqFactory.GetSender(queuePath));
 }