What does “IsTransactional” in NServiceBus mean?
问题 I am creating a web application that is going to send messages using NServiceBus, and also write to a database. I want this to be an atomic operation, i.e. a transaction, so I wrap the code in a using new TransactionScope() statement. When configuring NServiceBus you can call the IsTransactional-method. When do I pass 'false' to this method, and when is 'true' appropriate? 回答1: IsTransactional(true) mean that all incoming messages will be processed within a transactionscope http://docs