NServiceBus - 我想要 AsA_Server 配置,但不参与 MSDTC 事务

发布于 2024-09-25 21:42:50 字数 149 浏览 0 评论 0原文

我有一个服务,我不希望在服务启动时从其输入队列中清除消息,并且我不希望它参与 MSDTC 事务。我正在将其端点配置为运行 AsA_Server,但我看不到任何方法来禁用启动 MSDTC 事务。我正在使用 NServiceBus.Host.exe。

以前有人这样做过吗?

I have a service in which I don't want to messages to purged from its input queue when the service starts up and I don't want it to participate in an MSDTC transaction. I'm configuring it's endpoint to run AsA_Server, but I can't see any way to disable starting an MSDTC transaction. I'm using the NServiceBus.Host.exe.

Has anyone done this before?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

茶花眉 2024-10-02 21:42:50

AsA_Server 只是较长的Configure.With() 块中一堆选项的快捷方式。

删除 AsA_Server 接口,然后确保以下内容位于您的流畅配置中:

.MsmqTransport()
    .IsTransactional(false)
    .PurgeOnStartup(false)

AsA_Server is just a shortcut for a bunch of options in a longer Configure.With() block.

Remove the AsA_Server interface, and then make sure the following is in your fluent configuration:

.MsmqTransport()
    .IsTransactional(false)
    .PurgeOnStartup(false)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文