When using publisher confirms, is it possible to recover the message that was nacked? I've been looking through the event arguments for Channel_BasicNacks and haven't found an object or property that corresponds to it.
I.e.:
_factory = new ConnectionFactory
{
HostName = Settings.HostName, UserName = Settings.UserName, Password = Settings.Password,
AutomaticRecoveryEnabled = true
};
_connection = _factory.CreateConnection();
Channel = _connection.CreateModel();
Channel.BasicAcks += Channel_BasicAcks;
Channel.BasicNacks += Channel_BasicNacks;
Channel.ConfirmSelect();
Channel.QueueDeclare(Settings.QueueName, true, false, false, null);
}
private void Channel_BasicNacks(object sender, RabbitMQ.Client.Events.BasicNackEventArgs e)
{
IModel model = (IModel)sender;
throw new NotImplementedException();
}