public InternalTimeContext(TimeContextManager m, string s, Reporting.IReportingConnector <T> downstreamConn, bool hasAgg) { scope = s; manager = m; downstreamConnector = downstreamConn; if (hasAgg) { MakeAggregates(); } else { intAggregator = null; doubleAggregator = null; } }
public ITimeContext <T> MakeContextForScope <T>(string name, Reporting.IReportingConnector <T> downstreamConnector) where T : Time <T> { bool hasAggregate = this.reporting != null && this.reporting.HasAggregate; return(new InternalTimeContext <T>(this, name, downstreamConnector, hasAggregate)); }