public AFInterpolatedAttributeRetrievalClass( AFAttribute attribute, AFTimeRange timeRange, AFTimeSpan timeSpan, string outputDirectory, PIRandomFunctionsUtil.TimeResolution timeResolution, int numYears, int pageSize = 200000, Logger logger = null) { this.attribute = attribute; this.tag = attribute.PIPoint; if (tag == null) { throw new ArgumentException($"attribute PIPoint must be not null"); } this.desiredUOM = attribute.DefaultUOM; this.timeRange = timeRange; this.timeSpan = timeSpan; this.outputDirectory = outputDirectory; this.timeResolution = timeResolution; this.numYears = numYears; this.pageSize = pageSize; this.nextStartTime = timeRange.StartTime; if (logger == null) { logger = new Logger(); } this.logger = logger; }
public PIRecordedPointRetrievalClass( PIPoint tag, AFTimeRange timeRange, string outputDirectory, PIRandomFunctionsUtil.TimeResolution timeResolution, int numYears, int pageSize = 200000, Logger logger = null) { this.tag = tag; this.timeRange = timeRange; this.nextStartTime = timeRange.StartTime; this.outputDirectory = outputDirectory; this.timeResolution = timeResolution; this.numYears = numYears; this.pageSize = pageSize; if (logger == null) { logger = new Logger(); } this.logger = logger; }