MSMQ Triggers Topics | Previous
Suppose you create a new trigger named "PrivateTrigger" that is associated with the private queue "Mycomputer\Myqueue", and is comprised of two rules: "MyRule1" and "MyRule2".
Each of these rules defines a condition (such as Message Label Contains "marketing") and an action to be taken when the condition is true (such as open "Pbrush.exe" with parameter "Message Label"). In addition, a rule handler object is attached to the rule, by default this is the supplied IMSMQRuleHandler.
When a message arrives at Mycomputer\Myqueue, the MSMQ Triggers Service is notified. Next, for the "PrivateTrigger" trigger defined for that queue, the rules "MyRule1" and "MyRule2" associated with that trigger are applied. Lastly, Microsoft Paint is opened if all the conditions for those triggers are met (are true).