CMListener.SetExplicitConfirmation
Method
Visual Basic
Public Sub SetExplicitConfirmation
()
C#
public void SetExplicitConfirmation
();
Purpose
Override automatic confirmation of delivery for this listener.
Remarks
The default behavior of certified listeners is to automatically confirm delivery when the callback method returns (see MessageReceivedEventHandler). This call selectively overrides this behavior for this specific listener (without affecting other listeners).
By overriding automatic confirmation, the listener assumes responsibility to explicitly confirm each inbound certified message by calling CMListener.ConfirmMessage.
Consider overriding automatic confirmation when the processing of inbound messages involves activity that is asynchronous with respect to the message callback method; for example, computations in other threads or additional network communications.
No method exists to restore the default behavior—that is, to reverse the effect of this method.