Beispiel #1
0
        public static bool CheckCacheIsExpire()
        {
            lock (syncRoot)
            {
                TimeSpan ts = DateTime.Now - lastClearTime;
                if (600 < ts.TotalSeconds)
                {
                    DefaultProfile.ClearLocationEndPoints();
                    lastClearTime = DateTime.Now;
                    return(true);
                }

                return(false);
            }
        }