Exemplo n.º 1
0
        public bool IsSolutionLocked(string slnFilePath)
        {
            bool   flag            = false;
            string slnLockFilePath = SolutionLockHandler.getSlnLockFilePath(slnFilePath);

            try
            {
                flag = this.filelockhandler.IsFileLocked(slnLockFilePath);
            }
            catch (Exception ex)
            {
                LogConfig.Logger.Info((object)string.Format("solution {0} didn't locked ", (object)slnFilePath));
            }
            return(flag);
        }
Exemplo n.º 2
0
        public bool TryLockSolution(string slnFilePath)
        {
            bool   flag            = false;
            string slnLockFilePath = SolutionLockHandler.getSlnLockFilePath(slnFilePath);

            try
            {
                flag = this.filelockhandler.LockFile(slnLockFilePath);
            }
            catch (Exception ex)
            {
                LogConfig.Logger.Error((object)string.Format("can not lock solution {0}", (object)slnFilePath));
            }
            return(flag);
        }