private void SetEventResultProperties(OrchestrationEvent thisEvent, OrchestrationEvent resultEvent) { if (resultEvent != null) { thisEvent.Result = resultEvent.Result; } if (string.IsNullOrEmpty(thisEvent.Name)) { thisEvent.Name = thisEvent.OrchestrationStatus; } }
private void CollapseEvent(OrchestrationEvent thisEvent, IEnumerable <OrchestrationEvent> allEvents) { var resultEvent = allEvents.Where(e => e.TaskScheduledId == thisEvent.EventId).FirstOrDefault(); SetEventResultProperties(thisEvent, resultEvent); }