コード例 #1
0
        /// <summary>
        /// Gets the latest value for a specific storage site and environmental factor.
        /// </summary>
        /// <param name="siteId">The ID of the storage site to get the latest value for.</param>
        /// <param name="factor">The factor to get the latest value for.</param>
        /// <returns>Returns the latest value, or null.</returns>
        public DataPoint GetLatestValue(Guid siteId, EnvironmentalFactor factor)
        {
            StorageSite site = LocationsService.GetStorageSite(siteId);

            return(EnvironmentalDataRepository.GetLatestValue(site, factor));
        }