public EventMessagingService(IEventMessagingConfig messagingSettings)
 {
     _hostname  = messagingSettings.Hostname;
     _queueName = messagingSettings.QueueName;
     _username  = messagingSettings.UserName;
     _password  = messagingSettings.Password;
 }
        public EventConsumerService(IEventMessagingConfig messagingSettings, IEmailNotificationsDbService dbService)
        {
            this._hostname  = messagingSettings.Hostname;
            this._queueName = messagingSettings.QueueName;
            this._username  = messagingSettings.UserName;
            this._password  = messagingSettings.Password;
            this._dbService = dbService;

            // Initialization of RabbitMQ Listner
            InitializeRabbitMqListener();
        }