Пример #1
0
 public void MarkAsRunAway(ITransaction parent, DefaultTaggedTransaction transaction)
 {
     if (!transaction.HasChildren())
     {
         transaction.AddData("RunAway");
     }
     transaction.Status = CatConstants.SUCCESS;
     transaction.Standalone = true;
     transaction.Complete();
 }
Пример #2
0
        public virtual ITaggedTransaction NewTaggedTransaction(string type, string name, string tag)
        {
            if (!_mManager.HasContext())
            {
                _mManager.Setup();
            }

            if (_mManager.CatEnabled)
            {
                DefaultTaggedTransaction transaction = new DefaultTaggedTransaction(type, name, tag, _mManager);
                _mManager.Start(transaction, true);
                return transaction;
            }
            else
            {
                return new NullTransaction();
            }
        }