Exemplo n.º 1
0
        public TransactionInformation MethodC()
        {
            Transaction tx = Transaction.Current;
            TransactionInformation ti = (tx != null) ? tx.TransactionInformation : null;

            ComponentB b = new ComponentB();
            TransactionInformation tiInner = b.MethodE();

            if (ti.CreationTime == tiInner.CreationTime)
                return ti;
            else
                return null;
        }
Exemplo n.º 2
0
        public TransactionInformation MethodC()
        {
            Transaction            tx = Transaction.Current;
            TransactionInformation ti = (tx != null) ? tx.TransactionInformation : null;

            ComponentB             b       = new ComponentB();
            TransactionInformation tiInner = b.MethodE();

            if (ti.CreationTime == tiInner.CreationTime)
            {
                return(ti);
            }
            else
            {
                return(null);
            }
        }