public IEnumerator <EventBean> GetEnumerator(Viewable parent) { if (!_prototype.IsHistoricalOnly) { return(ObtainEnumerator(parent)); } ResultSetProcessorUtil.ClearAndAggregateUngrouped(_exprEvaluatorContext, _aggregationService, parent); ArrayDeque <EventBean> deque = ResultSetProcessorUtil.EnumeratorToDeque(ObtainEnumerator(parent)); _aggregationService.ClearResults(_exprEvaluatorContext); return(deque.GetEnumerator()); }
public IEnumerator <EventBean> GetEnumerator(Viewable parent) { if (!Prototype.IsHistoricalOnly) { return(ObtainEnumerator()); } ResultSetProcessorUtil.ClearAndAggregateUngrouped(ExprEvaluatorContext, AggregationService, parent); var enumerator = ObtainEnumerator(); AggregationService.ClearResults(ExprEvaluatorContext); return(enumerator); }