Example #1
0
        public RouterProvider(RabbitMQParams pParams)
        {
            RequestManager = new RequestManager();
            RouterCache    = new RouterCache(new SenderQueue(QueueType.Main, "Mitto.Main", true), RequestManager);

            PublisherQueue     = new ReaderQueue(QueueType.Publisher, ID, false);
            PublisherQueue.Rx += PublisherQueue_Rx;
        }
Example #2
0
        /// <summary>
        /// Constructor for the RabbitMQ Consumer Queue
        ///
        /// Listens on MittoMain
        ///
        /// ToDo: Make the sender Queue optional when creating a queue
        /// </summary>
        public Consumer(RabbitMQParams pParams)
        {
            RequestManager = new RequestManager();

            QueueProvider = new QueueProvider(pParams);

            MainQueue     = QueueProvider.GetReaderQueue(QueueType.Main, "Mitto.Main", true);
            MainQueue.Rx += MainQueue_Rx;

            ConsumerQueue     = QueueProvider.GetReaderQueue(QueueType.Consumer, ID, false);
            ConsumerQueue.Rx += ConsumerQueue_Rx;
        }
Example #3
0
 public RouterProvider(RabbitMQParams pParams)
 {
     SubscriptionExchange = new SenderQueue(QueueType.SubscriptionMain, $"Mitto.Subscription.Main", true);
 }