public static List <Inspector> GetCached()
        {
            var CIP = new CacheItemPolicy()
            {
                AbsoluteExpiration = DateTime.Today.AddDays(1)
            };

            return((List <Inspector>)MyCache.GetItem("inspector", CIP));
        }
Esempio n. 2
0
        public static DateCache getDateCache(bool IsExternalUser, DateTime MaxScheduleDate, bool ContractorOnNotice)
        {
            var CIP = new CacheItemPolicy()
            {
                AbsoluteExpiration = DateTime.Today.AddDays(1)
            };
            var dc = (DateCache)MyCache.GetItem("datecache," + IsExternalUser.ToString(), CIP);

            dc.SetMaxDate(MaxScheduleDate, ContractorOnNotice);
            return(dc);
        }
Esempio n. 3
0
 public static List <QuickRemark> GetCachedInspectionQuickRemarks()
 {
     return((List <QuickRemark>)MyCache.GetItem("quickremarks"));
 }
Esempio n. 4
0
 public static List <InspType> GetCachedInspectionTypes()
 {
     return((List <InspType>)MyCache.GetItem("inspectiontypes"));
 }