public TransactionScope(TransactionScopeOption scopeOption,
                         TransactionOptions options,
                         DTCOption opt)
 {
     this.Initialize(scopeOption, null, options, opt,
                     TransactionManager.DefaultTimeout);
 }
 public TransactionScope(TransactionScopeOption scopeOption,
                         TransactionOptions options)
     : this(scopeOption, options, DTCOption.None)
 {
 }
 public CommittableTransaction(TransactionOptions options)
 {
     this.options = options;
 }
        private void Initialize(TransactionScopeOption scopeOption,
                                Transaction tx, TransactionOptions options,
                                DTCOption interop, TimeSpan timeout)
        {
            this.completed = false;
            this.isRoot = false;
            this.nested = 0;
            this.timeout = timeout;

            this.oldTransaction = Transaction.CurrentInternal;

            Transaction.CurrentInternal = this.transaction = this.InitTransaction(tx, scopeOption);
            if (this.transaction != null)
            {
                this.transaction.InitScope(this);
            }
            if (this.parentScope != null)
            {
                this.parentScope.nested ++;
            }
        }
 public CommittableTransaction(TimeSpan timeout)
 {
     this.options = new TransactionOptions();
     this.options.Timeout = timeout;
 }