public RabbitMQConsumer(RabbitConfigurations configurations, IMapper mapper) :
            base(configurations.HostName)
        {
            Mapper = mapper.ThrowIfNull(nameof(mapper));

            var channel = GetChannel();

            _consumer = new EventingBasicConsumer(channel);
        }
 public RabbitMQPublisher(RabbitConfigurations configurations) : base(configurations.HostName)
 {
 }