public void markAsNotCompleted(DefaultTransaction transaction) { DefaultEvent evt = new DefaultEvent("cat", "BadInstrument"); evt.Status = "TransactionNotCompleted"; evt.SetCompleted(true); transaction.AddChild(evt); transaction.SetCompleted(true); }
public void LinkAsRunAway(DefaultForkedTransaction transaction) { DefaultEvent evt = new DefaultEvent("RemoteCall", "RunAway"); evt.AddData(transaction.ForkedMessageId, transaction.Type + ":" + transaction.Name); evt.Timestamp = transaction.Timestamp; evt.Status = CatConstants.SUCCESS; evt.SetCompleted(true); transaction.Standalone = true; _mManager.Add(evt); }
public void Bind(string tag, string childMessageId, string title) { try { DefaultEvent evt = new DefaultEvent("RemoteCall", "Tagged"); if (String.IsNullOrEmpty(title)) { title = Type + ":" + Name; } evt.AddData(childMessageId, title); evt.Timestamp = Timestamp; evt.Status = CatConstants.SUCCESS; evt.SetCompleted(true); AddChild(evt); } catch (Exception ex) { Cat.lastException = ex; } }