Esempio n. 1
0
        public void Release(ITransaction transaction)
        {
            // We could ensure that the transaction
            // was properly closed here

            (transaction as SimpleTransaction).Dispose();

            if (transaction == _current)
            {
                _current = null;
            }
        }
		public void Release(ITransaction transaction)
		{
			// We could ensure that the transaction
			// was properly closed here

			(transaction as SimpleTransaction).Dispose();

			if (transaction == _current)
			{
				_current = null;
			}
		}
Esempio n. 3
0
 public ITransaction CreateTransaction()
 {
     _current = new SimpleTransaction();
     return(_current);
 }
		public ITransaction CreateTransaction()
		{
			_current = new SimpleTransaction();
			return _current;
		}