This commit is contained in:
@@ -263,7 +263,7 @@ Plugins:
|
||||
|
||||
|
||||
|
||||
public static string GetRavenTrialKey(string dbid, string CompanyName)
|
||||
public static string GetRavenTrialKey(string dbid, string CompanyName, bool Perpetual)
|
||||
{
|
||||
|
||||
//Build a sample test key, sign it and return it
|
||||
@@ -277,14 +277,14 @@ Plugins:
|
||||
// k.Id = $"00-{sId}";
|
||||
k.RegisteredTo = CompanyName;
|
||||
k.DbId = dbid;
|
||||
k.Perpetual=Perpetual;
|
||||
|
||||
//trial period time limit
|
||||
k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddDays(TRIAL_PERIOD_DAYS);
|
||||
|
||||
//flag as trial key not regular key
|
||||
k.Features.Add(new LicenseFeature() { Feature = TRIAL_FEATURE_NAME, Count = 0 });
|
||||
//flag it as a temporary expiring key so that the expiration date takes effect
|
||||
k.Features.Add(new LicenseFeature() { Feature = SUBSCRIPTION_FEATURE_NAME, Count = 0 });
|
||||
|
||||
|
||||
//add every possible feature
|
||||
//k.Features.Add(new LicenseFeature() { Feature = QBI_FEATURE_NAME, Count = 0 });
|
||||
|
||||
Reference in New Issue
Block a user