Пример #1
0
 public void StoreAggregates <AggregateType>(OnDemandProcessingContext odpContext, BucketedAggregatesCollection <AggregateType> aggregateDefs) where AggregateType : DataAggregateInfo
 {
     if (aggregateDefs != null && !aggregateDefs.IsEmpty)
     {
         if (this.m_aggregateValues == null)
         {
             this.m_aggregateValues = new List <DataAggregateObjResult>();
         }
         foreach (AggregateType aggregateDef in aggregateDefs)
         {
             ScopeInstance.StoreAggregate <AggregateType>(odpContext, aggregateDef, ref this.m_aggregateValues);
         }
     }
 }
Пример #2
0
 public void StoreAggregates <AggregateType>(OnDemandProcessingContext odpContext, List <AggregateType> aggregateDefs) where AggregateType : DataAggregateInfo
 {
     if (aggregateDefs != null)
     {
         int count = aggregateDefs.Count;
         if (this.m_aggregateValues == null)
         {
             this.m_aggregateValues = new List <DataAggregateObjResult>();
         }
         for (int i = 0; i < count; i++)
         {
             ScopeInstance.StoreAggregate <AggregateType>(odpContext, aggregateDefs[i], ref this.m_aggregateValues);
         }
     }
 }