case 4217
This commit is contained in:
@@ -245,38 +245,38 @@ namespace rockfishCore.Util
|
||||
}
|
||||
|
||||
|
||||
//TESTING ONLY this is for development purposes only
|
||||
//No external usage
|
||||
public static string GetRavenTestKey(string dbid, bool Perpetual)
|
||||
{
|
||||
//Build a sample test key, sign it and return it
|
||||
AyaNovaLicenseKey k = new AyaNovaLicenseKey();
|
||||
k.LicenseFormat = "8";
|
||||
k.RegisteredTo = "GZ TestCo Inc.";
|
||||
k.DbId = dbid;
|
||||
k.Perpetual = Perpetual;
|
||||
if (Perpetual)
|
||||
{
|
||||
k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddDays(TRIAL_PERIOD_DAYS);
|
||||
//5k inside staff users will cover huge seeding level easily
|
||||
k.Features.Add(new LicenseFeature() { Feature = ACTIVE_INTERNAL_USERS_FEATURE_NAME, Count = 5000 });
|
||||
}
|
||||
else
|
||||
{
|
||||
//SUBSCRIPTION
|
||||
k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddDays(TRIAL_PERIOD_DAYS);
|
||||
// //TESTING ONLY this is for development purposes only
|
||||
// //No external usage
|
||||
// public static string GetRavenTestKey(string dbid, bool Perpetual)
|
||||
// {
|
||||
// //Build a sample test key, sign it and return it
|
||||
// AyaNovaLicenseKey k = new AyaNovaLicenseKey();
|
||||
// k.LicenseFormat = "8";
|
||||
// k.RegisteredTo = "GZ TestCo Inc.";
|
||||
// k.DbId = dbid;
|
||||
// k.Perpetual = Perpetual;
|
||||
// if (Perpetual)
|
||||
// {
|
||||
// k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddDays(TRIAL_PERIOD_DAYS);
|
||||
// //5k inside staff users will cover huge seeding level easily
|
||||
// k.Features.Add(new LicenseFeature() { Feature = ACTIVE_INTERNAL_USERS_FEATURE_NAME, Count = 5000 });
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// //SUBSCRIPTION
|
||||
// k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddDays(TRIAL_PERIOD_DAYS);
|
||||
|
||||
//20k customer contacts will cover huge seeding level easily
|
||||
//5k inside staff users will cover huge seeding level easily
|
||||
k.Features.Add(new LicenseFeature() { Feature = ACTIVE_INTERNAL_USERS_FEATURE_NAME, Count = 5000 });
|
||||
k.Features.Add(new LicenseFeature() { Feature = ACTIVE_CUSTOMER_USERS_FEATURE_NAME, Count = 20000 });
|
||||
k.Features.Add(new LicenseFeature() { Feature = MAXIMUM_DATA_GB_FEATURE_NAME, Count = 20 });
|
||||
// //20k customer contacts will cover huge seeding level easily
|
||||
// //5k inside staff users will cover huge seeding level easily
|
||||
// k.Features.Add(new LicenseFeature() { Feature = ACTIVE_INTERNAL_USERS_FEATURE_NAME, Count = 5000 });
|
||||
// k.Features.Add(new LicenseFeature() { Feature = ACTIVE_CUSTOMER_USERS_FEATURE_NAME, Count = 20000 });
|
||||
// k.Features.Add(new LicenseFeature() { Feature = MAXIMUM_DATA_GB_FEATURE_NAME, Count = 20 });
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
k.Features.Add(new LicenseFeature() { Feature = TRIAL_FEATURE_NAME, Count = 0 });
|
||||
return GenerateRavenKey(k);
|
||||
}
|
||||
// k.Features.Add(new LicenseFeature() { Feature = TRIAL_FEATURE_NAME, Count = 0 });
|
||||
// return GenerateRavenKey(k);
|
||||
// }
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user