Пример #1
0
        static void SetupTokenFile(bool isEdition, string editionTokenFile)
        {
            if (isEdition && !File.Exists(editionTokenFile))
            {
                File.Create(editionTokenFile).Dispose();
                return;
            }

            if (!isEdition && File.Exists(editionTokenFile))
            {
                File.Delete(editionTokenFile);

                string metaPath = MetaPath.GetMetaPath(editionTokenFile);

                if (File.Exists(metaPath))
                {
                    File.Delete(metaPath);
                }

                return;
            }
        }
Пример #2
0
 internal static string ForMetaChange(ChangeInfo change)
 {
     return(BuildCacheKey(
                change.ChangeTypes,
                MetaPath.GetMetaPath(change.Path)));
 }