void IInspectedObject.SetDeletionEvent(StateInspectorEvent evt) { if (deletion == null) { deletion = evt; } }
public PropertyChangeView(IInspectedObject obj, StateInspectorEvent change, DisplayMode mode, IUserNamesProvider shortNames) : base(obj) { this.Change = change; this.Object = obj; this.Mode = mode; this.shortNames = shortNames; }
void IInspectedObject.SetCreationEvent(StateInspectorEvent evt) { if (creation != null) { return; } creation = evt; var cevt = (ObjectCreation)evt.OriginalEvent; displayIdPropertyName = cevt.ObjectType.DisplayIdPropertyName; primaryPropertyName = cevt.ObjectType.PrimaryPropertyName; isTimeless = cevt.ObjectType.IsTimeless; }
public static int Compare(StateInspectorEvent evt1, MessageTimestamp evt2time, ILogSource evt2source, long evt2Position) { int sign = MessageTimestamp.Compare(evt1.Trigger.Timestamp.Adjust(evt1.Output.LogSource.TimeOffsets), evt2time); if (sign != 0) { return(sign); } sign = MessagesComparer.CompareLogSourceConnectionIds( evt1.Output.LogSource.GetSafeConnectionId(), evt2source.GetSafeConnectionId()); if (sign != 0) { return(sign); } sign = Math.Sign(evt1.Trigger.StreamPosition - evt2Position); return(sign); }
public static int Compare(StateInspectorEvent x, StateInspectorEvent y) { return(Compare(x, y.Trigger.Timestamp.Adjust(y.Output.LogSource.TimeOffsets), y.Output.LogSource, y.Trigger.StreamPosition)); }
void IInspectedObject.AddStateChangeEvent(StateInspectorEvent evt) { history.Add(evt); }