private void ApplicationAck(long id) { if (Flow == null) { return; } if (Flow.Properties.AckMode != MessageAckMode.AutoAck) { ReturnCode rc = Flow.Ack(id); if (rc != ReturnCode.SOLCLIENT_IN_PROGRESS && rc != ReturnCode.SOLCLIENT_OK) { throw new MessagingException("Ack failure: " + rc.ToString()); } } else { logger.LogDebug("Application tried to ack a message but the flow has AutoAck enabled."); } }