NServiceBus.DispatchTimeoutBehavior.GetDispatchConsistency C# (CSharp) Method

GetDispatchConsistency() static private method

static private GetDispatchConsistency ( TransportTransactionMode transportTransactionMode ) : DispatchConsistency
transportTransactionMode TransportTransactionMode
return DispatchConsistency
        static DispatchConsistency GetDispatchConsistency(TransportTransactionMode transportTransactionMode)
        {
            // dispatch message isolated from existing transactions when not using DTC to avoid loosing timeout data when the transaction commit fails.
            return transportTransactionMode == TransportTransactionMode.TransactionScope
                ? DispatchConsistency.Default
                : DispatchConsistency.Isolated;
        }