Ejemplo n.º 1
0
        public static async Task DeleteFromHistory(string name)
        {
            IList <string> historyList = GetHistory();

            historyList.Remove(name);
            await ChmFile.DeleteFile(name);

            await MetaInfo.DeleteMetaFile(name);

            await Snapshot.DeleteSnapshotFile(name);

            SetHistory(historyList);
        }
Ejemplo n.º 2
0
        public static async Task DeleteFromHistory(IEnumerable <string> keys)
        {
            IList <string> historyList = GetHistory();

            foreach (string name in keys)
            {
                historyList.Remove(name);
                await ChmFile.DeleteFile(name);

                await MetaInfo.DeleteMetaFile(name);

                await Snapshot.DeleteSnapshotFile(name);
            }
            SetHistory(historyList);
        }