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)
精彩评论