/// <summary> /// Adds the event. /// </summary> /// <param name="callEvent"></param> public void AddEvent(ICallflowEvent callEvent) { var newEvent = new CallflowEvent(string.Format("[{0}]", Events.Count)); newEvent.CopyFrom(callEvent); Add(newEvent); }
/// <summary> /// Copies from. /// </summary> /// <param name="source">The source.</param> public void CopyFrom(ICallflowEvent source) { EventName = source.EventName; RequestMessage = source.RequestMessage; ResponseMessage = source.ResponseMessage; StartTime = source.StartTime; EndTime = source.EndTime; Source = source.Source; }