Example #1
0
        public void Rollback(Enlistment enlistment)
        {
            resource.NumRollback++;
            if (resource.FailRollback)
            {
                if (resource.FailWithException)
                {
                    throw (resource.ThrowThisException ?? new NotSupportedException());
                }
                else
                {
                    return;
                }
            }

            resource.Rollback();
        }
 public void Rollback ( Enlistment enlistment )
 {
     resource.NumRollback++;
     resource.Rollback ();
 }