how to mark message as acknowledged in .NET api
how to mark message as acknowledged in .NET api

I noticed a problem - when I subscribe to `consumer.Received` event, delegate's first argument is of type Object, and I found out it's a reference to `IBasicConsumer` implementation. 
So, I see at least two options for acknowledging the message:
 - make use of channel to call `BasicAck` method
 - get reference to `IModel` object and then call `BasicAck` on it like this: `(model as IBasicConsumer).Model.BasicAck(...);`
Can you advise me on which one is the best?
rabbitmq/rabbitmq-website,rabbitmq/rabbitmq-website,rabbitmq/rabbitmq-website,rabbitmq/rabbitmq-website,rabbitmq/rabbitmq-website