コード例 #1
0
        public static bool CheckEnvironment(string path)
        {
            if (!FolderHashInfo.TryFind(path, out FolderHashInfo savedInfo))
            {
                return(false);
            }
            var actualInfo = FolderHashInfo.Create(path);

            return(savedInfo.Equals(actualInfo));
        }
コード例 #2
0
        public static bool CheckEnvironment(FolderHashInfo info)
        {
            var actualInfo = FolderHashInfo.Create(info.Location);

            return(info.Equals(actualInfo));
        }
コード例 #3
0
        public static void SaveState(string path, string stateName)
        {
            var state = FolderHashInfo.Create(path, stateName);

            state.Save(path);
        }