private void RenderTargetedResults(StatusNotificationWriter writer, DateTime start, StatusResultsOrganizer results, float ignoreRatingsBetterThan) { float rating = results.SortRating; writer.EnterTarget(results.Target, rating); AggregatedAlert?aggregatedAlert = null; foreach (StatusResultsOrganizer child in results.Children) { // is this one better than the cutoff? stop now because all the subsequent reports are better than this one! if (child.OverallRating > ignoreRatingsBetterThan) { break; } Aggregate(ref aggregatedAlert, writer, start, child, ignoreRatingsBetterThan); } if (aggregatedAlert != null) { writer.WriteAggregatedAlert(aggregatedAlert); } writer.LeaveTarget(); }