Esempio n. 1
0
		public TransactionScope (TransactionScopeOption scopeOption,
			TransactionOptions options,
			DTCOption opt)
		{
			Initialize (scopeOption, null, options, opt,
				TransactionManager.DefaultTimeout);
		}
 public TransactionScope(TransactionScopeOption scopeOption,
                         TransactionOptions options,
                         DTCOption opt)
 {
     Initialize(scopeOption, null, options, opt,
                TransactionManager.DefaultTimeout);
 }
Esempio n. 3
0
 public TransactionScope(TransactionScopeOption scopeOption,
                         TransactionOptions options,
                         DTCOption opt)
 {
     Initialize(scopeOption, null, options, opt,
                TransactionManager.DefaultTimeout, TransactionScopeAsyncFlowOption.Suppress);
 }
Esempio n. 4
0
 public TransactionScope(TransactionScopeOption scopeOption,
                         TransactionOptions transactionOptions,
                         DTCOption interopOption)
 {
     Initialize(scopeOption, null, transactionOptions, interopOption,
                TransactionManager.DefaultTimeout, TransactionScopeAsyncFlowOption.Suppress);
 }
Esempio n. 5
0
        void Initialize(TransactionScopeOption scopeOption,
                        Transaction tx, TransactionOptions options,
                        DTCOption interop, TimeSpan scopeTimeout, TransactionScopeAsyncFlowOption asyncFlow)
        {
            completed        = false;
            isRoot           = false;
            nested           = 0;
            asyncFlowEnabled = asyncFlow == TransactionScopeAsyncFlowOption.Enabled;

            if (scopeTimeout < TimeSpan.Zero)
            {
                throw new ArgumentOutOfRangeException("scopeTimeout");
            }

            this.timeout = scopeTimeout;

            oldTransaction = Transaction.CurrentInternal;

            Transaction.CurrentInternal = transaction = InitTransaction(tx, scopeOption, options);
            if (transaction != null)
            {
                transaction.InitScope(this);
            }
            if (parentScope != null)
            {
                parentScope.nested++;
            }
        }
Esempio n. 6
0
        void Initialize(TransactionScopeOption scopeOption,
                        Transaction tx, TransactionOptions options,
                        DTCOption interop, TimeSpan timeout)
        {
            completed = false;
            isRoot    = false;
            nested    = 0;

            oldTransaction = Transaction.CurrentInternal;

            Transaction.CurrentInternal = transaction = InitTransaction(tx, scopeOption);
            if (transaction != null)
            {
                transaction.InitScope(this);
            }
            if (parentScope != null)
            {
                parentScope.nested++;
            }
        }
Esempio n. 7
0
        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 TransactionScope(System.Transactions.TransactionScopeOption scopeOption, System.Transactions.TransactionOptions transactionOptions, System.Transactions.EnterpriseServicesInteropOption interopOption)
 {
 }
 public TransactionScope(System.Transactions.Transaction transactionToUse, System.TimeSpan scopeTimeout, System.Transactions.EnterpriseServicesInteropOption interopOption)
 {
 }
Esempio n. 10
0
 public TransactionScope(Transaction transactionToUse,
                         TimeSpan scopeTimeout, DTCOption interopOption)
 {
     Initialize(TransactionScopeOption.Required,
                transactionToUse, defaultOptions, interopOption, scopeTimeout, TransactionScopeAsyncFlowOption.Suppress);
 }
Esempio n. 11
0
 public TransactionScope(System.Transactions.Transaction transaction, System.TimeSpan timeout, System.Transactions.EnterpriseServicesInteropOption opt)
 {
 }
        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 ++;
            }
        }
Esempio n. 13
0
		public TransactionScope (TransactionScopeOption scopeOption,
			TransactionOptions options,
			DTCOption opt)
		{
			Initialize (scopeOption, null, options, opt,
				TransactionManager.DefaultTimeout, TransactionScopeAsyncFlowOption.Suppress);
		}
Esempio n. 14
0
		public TransactionScope (Transaction transaction,
			TimeSpan timeout, DTCOption opt)
		{
			Initialize (TransactionScopeOption.Required,
				transaction, defaultOptions, opt, timeout);
		}
		void Initialize (TransactionScopeOption scopeOption,
			Transaction tx, TransactionOptions options,
			DTCOption interop, TimeSpan timeout)
		{
			completed = false;
			isRoot = false;
			nested = 0;

			oldTransaction = Transaction.CurrentInternal;

			Transaction.CurrentInternal = transaction = InitTransaction (tx, scopeOption);
			if (transaction != null)
				transaction.InitScope (this);
			if (parentScope != null)
				parentScope.nested ++;
		}
Esempio n. 16
0
 public TransactionScope(Transaction transaction,
                         TimeSpan timeout, DTCOption opt)
 {
     Initialize(TransactionScopeOption.Required,
                transaction, defaultOptions, opt, timeout, TransactionScopeAsyncFlowOption.Suppress);
 }
 public TransactionScope(Transaction transaction,
                         TimeSpan timeout, DTCOption opt)
 {
     Initialize(TransactionScopeOption.Required,
                transaction, defaultOptions, opt, timeout);
 }
Esempio n. 18
0
		public TransactionScope (Transaction transaction,
			TimeSpan timeout, DTCOption opt)
		{
			Initialize (TransactionScopeOption.Required,
				transaction, defaultOptions, opt, timeout, TransactionScopeAsyncFlowOption.Suppress);
		}
Esempio n. 19
0
		void Initialize (TransactionScopeOption scopeOption,
			Transaction tx, TransactionOptions options,
			DTCOption interop, TimeSpan timeout)
		{
			completed = false;
			isRoot = false;
			nested = 0;

			if (timeout < TimeSpan.Zero)
				throw new ArgumentOutOfRangeException ("timeout");

			this.timeout = timeout;

			oldTransaction = Transaction.CurrentInternal;

			Transaction.CurrentInternal = transaction = InitTransaction (tx, scopeOption);
			if (transaction != null)
				transaction.InitScope (this);
			if (parentScope != null)
				parentScope.nested ++;
		}