/// <summary> /// Completes a received message. It settles the delivery and sends /// a disposition with the delivery state to the remote peer. /// </summary> /// <param name="messageDelivery">Delivery information of a message to reject.</param> /// <param name="deliveryState">An <see cref="Outcome"/> or a TransactionalState.</param> /// <remarks>This method is not transaction aware. It should be used to bypass /// transaction context look up when transactions are not used at all, or /// to manage AMQP transactions directly by providing a TransactionalState to /// <paramref name="deliveryState"/>.</remarks> public void Complete(MessageDelivery messageDelivery, DeliveryState deliveryState) { this.UpdateDelivery(messageDelivery, null, deliveryState); }
/// <summary> /// Releases a message. It sends a released outcome to the peer. /// </summary> /// <param name="messageDelivery">Delivery information of a message to release.</param> public void Release(MessageDelivery messageDelivery) { this.ThrowIfDetaching("Accept"); this.UpdateDelivery(messageDelivery, new Released(), null); }