public Aggregation() { AggTypeInfo = new AggregationTypeInfo(typeof(TInput), typeof(TOutput)); InputTypeInfo = new TypeInfo(typeof(TInput)).GatherTypeInfo(); OutputTypeInfo = new TypeInfo(typeof(TOutput)).GatherTypeInfo(); CheckTypeInfo(); }
public Aggregation() { OutputBuffer = new BufferBlock <TOutput>(); AggTypeInfo = new AggregationTypeInfo(typeof(TInput), typeof(TOutput)); CheckTypeInfo(); if (AggregationAction == null && AggTypeInfo.AggregateColumns.Count > 0) { AggregationAction = DefineAggregationAction; } if (GroupingFunc == null && AggTypeInfo.GroupColumns.Count > 0) { GroupingFunc = DefineGroupingPropertyFromAttributes; } if (StoreKeyAction == null && AggTypeInfo.GroupColumns.Count > 0) { StoreKeyAction = DefineStoreKeyActionFromAttributes; } }