Ejemplo n.º 1
0
        private static string getSlnLockFilePath(string slnFilePath)
        {
            if (!File.Exists(slnFilePath))
            {
                throw new FileNotFoundException(string.Format("solution {0} not exists: ", (object)slnFilePath));
            }
            slnFilePath = Path.Combine(slnFilePath);
            string md5String = FileLockHandler.GetMD5String(slnFilePath);

            return(Path.Combine(SolutionLockHandler.lockFolderDir, md5String));
        }
Ejemplo n.º 2
0
 protected SolutionLockHandler()
 {
     SolutionLockHandler.lockFolderDir = Path.Combine(Option.UserCustomerConfigFolder, "LockTemp");
     if (!Directory.Exists(SolutionLockHandler.lockFolderDir))
     {
         Directory.CreateDirectory(SolutionLockHandler.lockFolderDir);
     }
     if (this.filelockhandler != null)
     {
         return;
     }
     this.filelockhandler = FileLockHandler.Create();
 }