private void StartHasNewsNotifications() { notificationHasNewsScope = container.BeginLifetimeScope(); _hasNewsQueueConsumer = notificationHasNewsScope.Resolve <INotificationQueueConsumer>(); _hasNewsQueueConsumer.RabbitMQQueueName = Configuration.RabbitMQQueueHasNews; //_hasNewsQueueConsumer.SubscribeToQueue(Configuration.RabbitMQQueueHasNews); _hasNewsQueueConsumer.ListenForNotificationMessagesOnQueue(); }
private void StartPaymentNotifications() { notificationPaymentConfirmationScope = container.BeginLifetimeScope(); _paymentConfirmationQueueConsumer = notificationPaymentConfirmationScope.Resolve <INotificationQueueConsumer>(); _paymentConfirmationQueueConsumer.RabbitMQQueueName = Configuration.RabbitMQQueuePaymentConfirmation; //_paymentConfirmationQueueConsumer.SubscribeToQueue(Configuration.RabbitMQQueuePaymentConfirmation); _paymentConfirmationQueueConsumer.ListenForNotificationMessagesOnQueue(); }
private void StartEtaNotifications() { notificationEtaScope = container.BeginLifetimeScope(); _ETAQueueConsumer = notificationEtaScope.Resolve <INotificationQueueConsumer>(); _ETAQueueConsumer.RabbitMQQueueName = Configuration.RabbitMQQueueETA; //_ETAQueueConsumer.SubscribeToQueue(Configuration.RabbitMQQueueETA); _ETAQueueConsumer.ListenForNotificationMessagesOnQueue(); }