public static ComputeHashForFiles ( IEnumerable |
||
fileNames | IEnumerable |
|
Результат | string |
private static string ComputeSEBComponentsHash() { string directoryName = Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath); List <string> stringList = new List <string>() { Path.Combine(directoryName, "SafeExamBrowser.exe"), Path.Combine(directoryName, "SEBConfigTool.exe"), Path.Combine(directoryName, "Fleck.dll"), Path.Combine(directoryName, "IconLib.dll"), Path.Combine(directoryName, "MetroFramework.dll"), Path.Combine(directoryName, "SEBWindowsServiceContracts.dll"), Path.Combine(directoryName, "SebWindowsServiceWCF", "SebWindowsServiceWCF.exe"), Path.Combine(directoryName, "SebWindowsServiceWCF", "SEBWindowsServiceContracts.dll"), Path.Combine(directoryName, "SebWindowsServiceWCF", "Interop.WUApiLib.dll") }; string path = Path.Combine(directoryName, "SebWindowsBrowser"); if (Directory.Exists(path)) { stringList.AddRange((IEnumerable <string>)Directory.GetFiles(path, "*.*", SearchOption.AllDirectories)); } return(SEBProtectionController.ComputeHashForFiles((IEnumerable <string>)stringList)); }