Exemple #1
0
        /// <summary>
        /// Used for mobile service with all the logged climb stuff needing to pass back grade / avatar etc.... (I think)!
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        //public static Climb GetClimb(Guid id)
        //{
        //    string key = "climb-" + id.ToString();
        //    return TryGetFromCache(key, () => new GeoService().GetClimbByID(id), FiveMinCacheItemPolicy);
        //}

        /// <summary>
        /// User for partner calls event-ing
        /// </summary>
        /// <param name="place"></param>
        /// <returns></returns>
        public static List <cf.Dtos.CfCacheIndexEntry> GetGeoDeduciblePlaces(cf.Dtos.CfCacheIndexEntry place)
        {
            string key = "deduc-ofplace-" + place.ID.ToString();

            return(TryGetFromCache(key, () => new GeoService().GetGeoDeduciblePlaces(place), SixtyMinCacheItemPolicy));
        }
Exemple #2
0
 public PlaceWithModDetails(CfCacheIndexEntry place, ObjectModMeta modDetails)
 {
     _place      = place;
     _modDetails = modDetails;
 }