private void DoTxScopeBegin(PromotableTxScopeTransactionObject txObject,
                                    Spring.Transaction.ITransactionDefinition definition)
        {
            TransactionScopeOption txScopeOption = CreateTransactionScopeOptions(definition);
            TransactionOptions     txOptions     = CreateTransactionOptions(definition);

            txObject.TxScopeAdapter.CreateTransactionScope(txScopeOption, txOptions, definition.EnterpriseServicesInteropOption);
        }
Ejemplo n.º 2
0
        private void DoTxScopeBegin(TxScopeTransactionManager.PromotableTxScopeTransactionObject txObject,
                                    Spring.Transaction.ITransactionDefinition definition)
        {
            TransactionScopeOption txScopeOption = CreateTransactionScopeOptions(definition);
            TransactionOptions     txOptions     = CreateTransactionOptions(definition);

            txObject.TxScopeAdapter.CreateTransactionScope(txScopeOption, txOptions, definition.AsyncFlowOption);
        }
        protected override void DoBegin(object transaction, Spring.Transaction.ITransactionDefinition definition)
        {
            PromotableTxScopeTransactionObject txObject =
                (PromotableTxScopeTransactionObject)transaction;

            try
            {
                DoTxScopeBegin(txObject, definition);
            }
            catch (Exception e)
            {
                throw new CannotCreateTransactionException("Transaction Scope failure on begin", e);
            }
        }