Example #1
0
 public void SetupAggregates <AggregateType>(OnDemandProcessingContext odpContext, BucketedAggregatesCollection <AggregateType> aggregateDefs, ref int aggregateValueOffset) where AggregateType : DataAggregateInfo
 {
     if (this.m_aggregateValues != null && aggregateDefs != null)
     {
         foreach (AggregateType aggregateDef in aggregateDefs)
         {
             ScopeInstance.SetupAggregate(odpContext, aggregateDef, this.m_aggregateValues[aggregateValueOffset]);
             aggregateValueOffset++;
         }
     }
 }
Example #2
0
        public void SetupAggregates <AggregateType>(OnDemandProcessingContext odpContext, List <AggregateType> aggregateDefs, List <int> aggregateIndexes, ref int aggregateValueOffset) where AggregateType : DataAggregateInfo
        {
            int num = (aggregateIndexes != null) ? aggregateIndexes.Count : 0;

            for (int i = 0; i < num; i++)
            {
                int index = aggregateIndexes[i];
                ScopeInstance.SetupAggregate(odpContext, aggregateDefs[index], this.m_aggregateValues[aggregateValueOffset]);
                aggregateValueOffset++;
            }
        }
Example #3
0
 public void SetupAggregates <AggregateType>(OnDemandProcessingContext odpContext, List <AggregateType> aggregateDefs, ref int aggregateValueOffset) where AggregateType : DataAggregateInfo
 {
     if (this.m_aggregateValues != null && aggregateDefs != null)
     {
         int count = aggregateDefs.Count;
         for (int i = 0; i < count; i++)
         {
             ScopeInstance.SetupAggregate(odpContext, aggregateDefs[i], this.m_aggregateValues[aggregateValueOffset]);
             aggregateValueOffset++;
         }
     }
 }