private void MarkAsLastRequest() { File.WriteAllText(this._licenseCheckFilePath, this.GetHashedValue(AspNetZeroLicenseChecker.GetLicenseExpiredString())); }
private bool CheckedBefore() { if (!File.Exists(this._licenseCheckFilePath)) { return(false); } string licenseCheckDate = this.GetLastLicenseCheckDate(); if (this.GetHashedValue(AspNetZeroLicenseChecker.GetTodayAsString()) == licenseCheckDate || this.GetHashedValue(AspNetZeroLicenseChecker.GetLicenseExpiredString()) == licenseCheckDate) { return(true); } File.Delete(this._licenseCheckFilePath); return(false); }