Skip to content

Commit

Permalink
Letting the ambient transaction control if we enlist or not
Browse files Browse the repository at this point in the history
If not the send won't enlist in ambient transactions
  • Loading branch information
andreasohlund authored and John Simons committed Oct 27, 2014
1 parent d6f0ede commit eec009b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/NServiceBus.Core/Transports/Msmq/MsmqMessageSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@ MessageQueueTransactionType GetTransactionTypeForSend()
return MessageQueueTransactionType.None;
}

if (SuppressDistributedTransactions)
{
return MessageQueueTransactionType.Single;
}

return Transaction.Current != null
? MessageQueueTransactionType.Automatic
: MessageQueueTransactionType.Single;
Expand Down

0 comments on commit eec009b

Please sign in to comment.