An application logs information about messages that pass through a message queue, including message contents.
The application must run once for each message.
You need to ensure that the application is executed for every message.
Your solution must not prevent other processes from receiving the messages on the same queue.
What should you do?
A.
Create a Windows service application.
Use the Peek method to retrieve message contents as messages arrive in the queue.
Pass the message contents to the logging application.
B.
Create a Windows service application.
Use the Peek method to find out when a message arrives in the message queue.
Use the ReceiveById method to retrieve the message contents.
Pass the message contents to the logging application.
C.
Create a Message Queuing trigger that executes the logging application.
Define the trigger rule to pass the message contents as a string parameter to the logging application.
D.
Create a Message Queuing trigger that executes the logging application.
Define the trigger rule to pass the message ID as a parameter to the logging application.
Use the ReceiveById method on the MessageQueue object to retrieve the message content within the logging application.