예제 #1
0
        public static bool Contains(Strand Strand)
        {
            if (_enabled && !Strand.Name.StartsWith("Theme"))
            {
                string cachePath = StrandsCache.GetCachePath(Strand);
                if (!System.IO.File.Exists(cachePath))
                {
                    return false;
                }
                else
                {
                    DateTime dtXml = System.IO.File.GetLastWriteTimeUtc(Strand.GetDirectoryPath());
                    DateTime dtCache = System.IO.File.GetLastWriteTimeUtc(cachePath);

                    if (dtXml.CompareTo(dtCache) == -1)
                        return true;
                    else
                        return false;
                }
            }
            else
                return false;
        }