using System.Collections.Concurrent; using System.Collections.Generic; using BurnOutSharp.Interfaces; using BurnOutSharp.Matching; namespace BurnOutSharp.ProtectionType { public class DiscGuard : IPathCheck { /// public ConcurrentQueue CheckDirectoryPath(string path, IEnumerable files) { var matchers = new List { new PathMatchSet(new List { new PathMatch("IOSLINK.VXD", useEndsWith: true), new PathMatch("IOSLINK.DLL", useEndsWith: true), new PathMatch("IOSLINK.SYS", useEndsWith: true), }, "DiscGuard"), }; return MatchUtil.GetAllMatches(files, matchers, any: false); } /// public string CheckFilePath(string path) { var matchers = new List { new PathMatchSet(new PathMatch("IOSLINK.VXD", useEndsWith: true), "DiscGuard"), new PathMatchSet(new PathMatch("IOSLINK.DLL", useEndsWith: true), "DiscGuard"), new PathMatchSet(new PathMatch("IOSLINK.SYS", useEndsWith: true), "DiscGuard"), }; return MatchUtil.GetFirstMatch(path, matchers, any: true); } } }