示例#1
0
        void System.Transactions.IEnlistmentNotification.Prepare(System.Transactions.PreparingEnlistment preparingEnlistment)
        {
            if (this.aborted)
            {
                preparingEnlistment.ForceRollback();

                this.Rollback();
                this.Release();

                preparingEnlistment.Done();
            }
            else
            {
                preparingEnlistment.Prepared();
            }
        }
示例#2
0
 public void Prepare(System.Transactions.PreparingEnlistment preparingEnlistment)
 {
     preparingEnlistment.Prepared();
 }