You are developing an Azure cloud service for a company. The cloud service monitors a queue for incoming messages and then processes invoices based on the contents of these messages. Some messages are formed incorrectly and cause exceptions.
There is no time limit for how long the service takes to process an individual message. All messages must be processed at least once by using the ProcessMessage method. Messages must not be processed more than twice by using the ProcessMessage method.
Messages that fail normal processing must be processed by using the ProcessPoisonMessage method. You need to configure message processing.
How should you complete the relevant code? To answer, select the appropriate option or options in the answer area.
Check if msg is null.
Messages must not be processed more than twice by using the ProcessMessage method.
Delete the message after successful processing.