Ejemplo n.º 1
0
 public MessagePublisher(
     IConfiguration configuration,
     IPolicyManager policyManager,
     IRabbitMQClient rabbitMQClient,
     IMessageConsumer messageConsumer)
 {
     Configuration     = configuration;
     m_RabbitMQClient  = rabbitMQClient;
     m_Channel         = m_RabbitMQClient.SetupMQTTBindings(MqttBinding);
     m_BatchReplyMap   = new ConcurrentDictionary <Guid, BatchStatus>();
     m_PolicyManager   = policyManager;
     m_MessageConsumer = messageConsumer;
     m_MessageConsumer.BatchReplyEventChanged += OnBatchReplyChanged;
 }
Ejemplo n.º 2
0
 public MessageConsumer(IRabbitMQClient rabbitMQClient)
 {
     m_RabbitMQClient = rabbitMQClient;
     m_Channel        = m_RabbitMQClient.SetupMQTTBindings(MqttBinding);
 }