Ejemplo n.º 1
0
        private void WrapAggregationAction(TInput row)
        {
            object key = GroupingFunc?.Invoke(row) ?? string.Empty;

            if (!AggregationData.ContainsKey(key))
            {
                AddRecordToDict(key);
            }

            TOutput currentAgg = AggregationData[key];

            AggregationAction.Invoke(row, currentAgg);
        }
Ejemplo n.º 2
0
        private void WrapAggregationAction(TInput row)
        {
            object key = ClassificationProperty?.Invoke(row) ?? "AggregateAll";

            if (!AggregationData.ContainsKey(key))
            {
                AddRecordToDict(key);
            }

            TOutput currentAgg = AggregationData[key];

            AggregationAction.Invoke(row, currentAgg);
        }
Ejemplo n.º 3
0
        private void WrapAggregationAction(TInput row)
        {
            try
            {
                object key = GroupingFunc?.Invoke(row) ?? string.Empty;

                if (!AggregationData.ContainsKey(key))
                {
                    AddRecordToDict(key);
                }

                TOutput currentAgg = AggregationData[key];
                AggregationAction.Invoke(row, currentAgg);
            }
            catch (Exception e)
            {
                ThrowOrRedirectError(e, ErrorSource.ConvertErrorData <TInput>(row));
                return;
            }
        }