This commit is contained in:
2022-10-26 01:39:48 +00:00
parent daeaead405
commit 82fa388776
2 changed files with 21 additions and 14 deletions

View File

@@ -225,7 +225,13 @@ namespace rockfishCore.Util
if (Perpetual)
{
//trial period time limit
k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddDays(TRIAL_PERIOD_DAYS); //NOTE: this preserves the current time, should it be set to midnight or something?
//#warning FYI ROCKFISH is SET TO GENERATE A VERY SHORT TEST KEY
//Normal code, uncomment this when done testing expiration dates of perpetual
k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddDays(TRIAL_PERIOD_DAYS);
//Testing code for 3 minute long evaluation license in case need to test with a key that expires
// k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddMinutes(3); //TEST VALUE FOR DIAGNOSING LICENSE EXPIRATION ISSUES
//5k inside staff users will cover huge seeding level easily
k.Features.Add(new LicenseFeature() { Feature = ACTIVE_INTERNAL_USERS_FEATURE_NAME, Count = 5000 });
}