コード例 #1
0
        /// <summary>
        /// Gets the min and max values for a specific storage site and environmental factor.
        /// </summary>
        /// <param name="siteId">The ID of the storage site to get the history for.</param>
        /// <param name="factor">The factor to get the history for.</param>
        /// <param name="startTime">Start time of the period to get value for.</param>
        /// <param name="endTime">End time of the period to get value for.</param>
        /// <returns>Returns the extrema.</returns>
        public Extrema GetExtrema(Guid siteId, EnvironmentalFactor factor, DateTime startTime, DateTime endTime)
        {
            StorageSite site = LocationsService.GetStorageSite(siteId);

            return(EnvironmentalDataRepository.GetExtrema(site, factor, startTime, endTime));
        }