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); }
private void WriteLockFile(string value) { LockFileDetail.WriteLockFile(value); }