Example #1
0
 public void Rollback()
 {
     if (!IsClosed)
     {
         try {
             var touchedTables = TableManager.AccessedTables.ToList();
             TableComposite.Rollback(this, touchedTables, Registry);
         } finally {
             IsClosed = true;
             Finish();
         }
     }
 }
        public void Rollback()
        {
            if (!IsClosed)
            {
                try {
                    State = TransactionState.Rollback;

                    var touchedTables = TableManager.AccessedTables.ToList();
                    TableComposite.Rollback(this, touchedTables, Registry);

                    this.OnEvent(new TransactionEvent(TransactionEventType.Rollback));
                } finally {
                    IsClosed = true;
                    Finish();
                }
            }
        }