使用Windows Service接收MSMQ消息 [英] Receiving MSMQ messages with Windows Service

查看:77
本文介绍了使用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.

这篇关于使用Windows Service接收MSMQ消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆