0

我需要将 .net2.0 应用程序与 nservicebus 集成。实际上,我只需要这个 .net2.0 向 nservicebus 队列发送消息。

我应该自己创建它吗?有什么我应该注意的技巧,所以当我升级到 nservicebus4 时,它不会坏掉吗?

4

2 回答 2

0

using .net 2.0 will be a problem with trying to reference nservicebus. i don't think there is any straightforward way to reference nservicebus from a 2.0 application (outside of using a very old version, which would have problems too).

the shortest path would probably be to upgrade the framework version to 4.0. why not just do this? if you're talking about making changes and sending messages, you must have access to the source code and the ability to change it.

next after that might be to serialize a message yourself and send it with system.messaging. i think this is what you mean by "create it by myself." you'd definitely want to test that your messages still work if updating to another version of nservicebus on the handling side. udi is insistent on backward compatibility in updating versions of software, so i'd expect nservicebus would exhibit this probably and that your messages would still work, but you would want to make sure.

于 2012-04-07T21:34:45.943 回答
0

要将应用程序与 NServiceBus “集成”,只需在您的解决方案中包含对NServiceBus.dllNServiceBus.Core.dllNServiceBus.Host.exe的二进制引用。

尝试下载示例

于 2012-04-07T13:46:40.353 回答