Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public static IStorePropertyBag Aggregate(PropertyAggregationContext context, IEnumerable <PropertyDefinition> properties)
 {
     return(ApplicationAggregatedProperty.AggregateAsPropertyBag(context, properties).AsIStorePropertyBag());
 }