private T PrepareItem <T>(List <IStorePropertyBag> sources, Func <PropertyBag, T> converResultItem) { this.aggregationExtension.BeforeAggregation(sources); PropertyAggregationContext propertyAggregationContext = this.aggregationExtension.GetPropertyAggregationContext(sources); PropertyBag arg = ApplicationAggregatedProperty.AggregateAsPropertyBag(propertyAggregationContext, this.originalProperties); return(converResultItem(arg)); }
public static IStorePropertyBag Aggregate(PropertyAggregationContext context, IEnumerable <PropertyDefinition> properties) { return(ApplicationAggregatedProperty.AggregateAsPropertyBag(context, properties).AsIStorePropertyBag()); }