コード例 #1
0
        private void StartHasNewsNotifications()
        {
            notificationHasNewsScope = container.BeginLifetimeScope();

            _hasNewsQueueConsumer = notificationHasNewsScope.Resolve <INotificationQueueConsumer>();
            _hasNewsQueueConsumer.RabbitMQQueueName = Configuration.RabbitMQQueueHasNews;
            //_hasNewsQueueConsumer.SubscribeToQueue(Configuration.RabbitMQQueueHasNews);
            _hasNewsQueueConsumer.ListenForNotificationMessagesOnQueue();
        }
コード例 #2
0
        private void StartPaymentNotifications()
        {
            notificationPaymentConfirmationScope = container.BeginLifetimeScope();

            _paymentConfirmationQueueConsumer = notificationPaymentConfirmationScope.Resolve <INotificationQueueConsumer>();
            _paymentConfirmationQueueConsumer.RabbitMQQueueName = Configuration.RabbitMQQueuePaymentConfirmation;
            //_paymentConfirmationQueueConsumer.SubscribeToQueue(Configuration.RabbitMQQueuePaymentConfirmation);
            _paymentConfirmationQueueConsumer.ListenForNotificationMessagesOnQueue();
        }
コード例 #3
0
        private void StartEtaNotifications()
        {
            notificationEtaScope = container.BeginLifetimeScope();

            _ETAQueueConsumer = notificationEtaScope.Resolve <INotificationQueueConsumer>();
            _ETAQueueConsumer.RabbitMQQueueName = Configuration.RabbitMQQueueETA;
            //_ETAQueueConsumer.SubscribeToQueue(Configuration.RabbitMQQueueETA);
            _ETAQueueConsumer.ListenForNotificationMessagesOnQueue();
        }