Contour.Transport.RabbitMQ.Internal.RabbitChannel.OnConfirmation C# (CSharp) Method

OnConfirmation() public method

The on confirmation.
public OnConfirmation ( ConfirmationHandler handleConfirmation ) : void
handleConfirmation ConfirmationHandler /// The handle confirmation. ///
return void
        public void OnConfirmation(ConfirmationHandler handleConfirmation)
        {
            this.SafeNativeInvoke(
                n =>
                    {
                        n.BasicAcks += (model, args) => handleConfirmation(true, args.DeliveryTag, args.Multiple);
                        n.BasicNacks += (model, args) => handleConfirmation(false, args.DeliveryTag, args.Multiple);
                    });
        }