Exemple #1
0
        public string[] GetLockingProcessNames()
        {
            var processes = FileWrapper.WhoIsLocking(HostsFile);

            if (processes == null)
            {
                return(new string[0]);
            }

            return(processes.Select(x => x.MainModule?.FileVersionInfo?.ProductName ?? x.ProcessName).ToArray());
        }