Hi I need clarification for the following section of the Messaging documentation.
IMessage<Hello> msgCopy = mqClient.Get<Hello>(QueueNames<Hello>.Out);
mqClient.Ack(msgCopy);
msgCopy.GetBody().Name //= World
Also shown in this example is an explicit Ack (which should be done for each message you receive) to tell the MQ Broker that you’ve taken responsibility of the message so it can safely remove it off the queue.
Regarding the statement mqClient.Ack(msgCopy)
, is this used in this scenario because it is manually retrieving the message from the queue? And if the message on the queue was handled by a MQService does a similar function similar to Ack performed?