Beispiel #1
0
        public bool CheckLockAndKey()
        {
            bool isLockAndKeyMatches = false;

            if (!LockFileDetail.IsLockFileExists())
            {
                string lockValue = FingerPrint.Generate();
                LockFileDetail.WriteLockFile(lockValue);
                throw new Exception(LicenseResource.DllNotInstalled);
            }
            else if (KeyFileDetail.IsKeyFileExists())
            {
                isLockAndKeyMatches = IsLockAndKeyMatches();

                if (!isLockAndKeyMatches)
                {
                    throw new Exception(LicenseResource.DllNotInstalled);
                }
            }
            else
            {
                throw new Exception(LicenseResource.DllNotInstalled);
            }

            return(isLockAndKeyMatches);
        }
Beispiel #2
0
 public string ReadLockFile()
 {
     return(LockFileDetail.ReadLockFile());
 }
Beispiel #3
0
 private void WriteLockFile(string value)
 {
     LockFileDetail.WriteLockFile(value);
 }