Exemple #1
0
        private static ILockingProcessManager CreateFromProcessesWithoutSelf(IEnumerable <ILockingProcessInfo> processes)
        {
            var processesWithoutSelf = WithoutProcess(processes, Process.GetCurrentProcess().Id);
            var processManager       = LockingProcessManagerFactory.Create();

            processManager.Register(null, processesWithoutSelf);
            return(processManager);
        }
        protected internal ICollection <IComponent> GetPendingComponents(ICollection <string> files, out ILockingProcessManager lockingProcessManager)
        {
            var components = FindComponentsFromFiles(files).ToList();

            lockingProcessManager = LockingProcessManagerFactory.Create();
            lockingProcessManager.Register(files);
            return(components);
        }