subscription / Perpetual license mode changes

This commit is contained in:
2022-08-16 23:42:01 +00:00
parent ea766e68b8
commit 07653bda93
2 changed files with 4 additions and 2 deletions

View File

@@ -43,6 +43,8 @@ todo: SAAS different license checking method to ensure only *we* are hosting it
and if no file present then it's not hosted by us and as long as the license is perpetual then we're ok, but if the file not present and it's an SAAS license they fuck that shit stops working says not running from a licensed location.
TODO: I think a different build is the most solid way to do it, it's a pain but it *does* solve a lot of problems in one swoop and I can do endless things in the code if I have a build flag around them that is cool
implement build flag "SUBSCRIPTION_BUILD"
Raven trial request must send it's build type to get the appropriate type of license
Rockfish must return the correct type of license for the requested build type
Change rockfish license generator to make subscription type a first class element, not a feature in the feature collection
change AyaNova build to only work as a subscription build with a subscription key adn vice versa so the key *must* be the correct one
treat this like an out of maint newer build where it just won't boot up

View File

@@ -332,7 +332,7 @@ namespace AyaNova.Core
sb.AppendLine($"Registered to: {ActiveKey.RegisteredTo}");
//sb.AppendLine($"Key ID: {ActiveKey.Id}");
//sb.AppendLine($"Server DB ID: {ServerDbId}");
sb.AppendLine($"Type: {(ActiveKey.RentalLicense ? "Service" : "Perpetual")}");
sb.AppendLine($"Type: {(ActiveKey.RentalLicense ? "Subscription" : "Perpetual")}");
if (ActiveKey.WillExpire)
sb.AppendLine($"License expires: {DateUtil.ServerDateTimeString(ActiveKey.LicenseExpiration)}");
sb.AppendLine($"Maintenance subscription expires: {DateUtil.ServerDateTimeString(ActiveKey.MaintenanceExpiration)}");
@@ -379,7 +379,7 @@ namespace AyaNova.Core
sb.Append($"keyid: {ActiveKey.Id}, ");
sb.Append($"dbid: {LicenseDbId}, ");
// sb.Append($"serverdbid: {ServerDbId}");
sb.Append($"type: {(ActiveKey.RentalLicense ? "service" : "perpetual")}, ");
sb.Append($"type: {(ActiveKey.RentalLicense ? "subscription" : "perpetual")}, ");
if (ActiveKey.WillExpire)
sb.Append($"exp: {DateUtil.ServerDateTimeString(ActiveKey.LicenseExpiration)} (utc), ");
sb.Append($"maint. sub. exps: {DateUtil.ServerDateTimeString(ActiveKey.MaintenanceExpiration)} (utc), ");