public bool Equals(RequestStep other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(other.RequestTimeInMilliseconds.Equals(RequestTimeInMilliseconds) && Equals(other.Log, Log)); }
private BehaviorNode findNode(RequestStep step, Stack<BehaviorNode> stack, RequestStep[] steps) { if (stack.Any()) return stack.Peek(); var index = Array.IndexOf(steps, step); var last = steps.Select(x => x.Log).Take(index).OfType<BehaviorFinish>().LastOrDefault(); return last == null ? null : last.Correlation.Node; }
public bool Equals(RequestStep other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return other.RequestTimeInMilliseconds.Equals(RequestTimeInMilliseconds) && Equals(other.Log, Log); }