NServiceBus.MsmqConfigurationExtensions.TransactionScopeOptions C# (CSharp) Method

TransactionScopeOptions() public static method

Allows to change the transaction isolation level and timeout for the `TransactionScope` used to receive messages.
If not specified the default transaction timeout of the machine will be used and the isolation level will be set to `ReadCommited`.
public static TransactionScopeOptions ( this transportExtensions, System.TimeSpan timeout = null, IsolationLevel isolationLevel = null ) : TransportExtensions
transportExtensions this
timeout System.TimeSpan
isolationLevel IsolationLevel
return TransportExtensions
        public static TransportExtensions<MsmqTransport> TransactionScopeOptions(this TransportExtensions<MsmqTransport> transportExtensions, TimeSpan? timeout = null, IsolationLevel? isolationLevel = null)
        {
            transportExtensions.Settings.Set<MsmqScopeOptions>(new MsmqScopeOptions(timeout, isolationLevel));
            return transportExtensions;
        }