public void StartConsumer() { RabbitMqHelper.StartConsumer(this.channel, this.ReceiveMessage); }
public MessageReceiver(ILogger <MessageReceiver> logger) { this.logger = logger; this.connection = RabbitMqHelper.CreateConnection(); this.channel = RabbitMqHelper.CreateModelAndDeclareTestQueue(this.connection); }