开发者

NServiceBus - I want AsA_Server config, but not participate in MSDTC transaction

开发者 https://www.devze.com 2023-01-19 07:02 出处:网络
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 endpoin

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_Serve开发者_StackOverflow中文版r, 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?


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)
0

精彩评论

暂无评论...
验证码 换一张
取 消