if (calcDR)
RaiseOnCurDataCalculated(drCnlNums, curSrez);
if (calcMinDR)
RaiseOnCurDataCalculated(drmCnlNums, curSrez);
if (calcHrDR)
RaiseOnCurDataCalculated(drhCnlNums, curSrez);
CurDataCalculated can be raised with data snapshots for different internval, if a module use this event, what should the module do to determine which type of data snapshot is provided upon this event ?
The methods RaiseOnCurDataCalculated, RaiseOnCurDataCalculated, RaiseOnCurDataCalculated just call the appropriate method in the active modules. They don’t calculate formulas.
I don’t understand what you mean. My question is
for a module that only want to process current snapshot, and ignore any per minute or per hourly averaged data,
when it receives this event, how does it know if the data returned is for calcDR, calcMinDR, calcHrDR?