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 }); }
public void AddSubscriber(string queuePath) { _msmqSenders.Add(_msmqFactory.GetSender(queuePath)); }