使用Windows Service接收MSMQ消息

问题描述:

我正在用C#创建Windows服务.

I'm creating a Windows Service in C#.

收听消息的最佳方法是什么?如何正确编码?

What is the best way to listen for messages?? How do I code this properly??

您不听.您配置 MSMQ激活以在消息到达时激活组件.该链接包含您需要的所有详细信息,代码和配置.

You don't listen. You configure MSMQ Activation to activate your component when messages arrive. The link has all the details you need, code and configuration.