case 4217
This commit is contained in:
@@ -38,16 +38,17 @@ namespace rockfishCore.Controllers
|
|||||||
|
|
||||||
string FetchRequestDbId = fetchRequest.DbId;
|
string FetchRequestDbId = fetchRequest.DbId;
|
||||||
|
|
||||||
if (dtt)
|
//removed from release build 2022-10-25
|
||||||
{
|
// if (dtt)
|
||||||
return Ok(new
|
// {
|
||||||
{
|
// return Ok(new
|
||||||
data = new
|
// {
|
||||||
{
|
// data = new
|
||||||
key = RavenKeyFactory.GetRavenTestKey(FetchRequestDbId, pp)//pp means perpetual no pp means subcription
|
// {
|
||||||
}
|
// key = RavenKeyFactory.GetRavenTestKey(FetchRequestDbId, pp)//pp means perpetual no pp means subcription
|
||||||
});
|
// }
|
||||||
}
|
// });
|
||||||
|
// }
|
||||||
|
|
||||||
string LicenseKey = null;
|
string LicenseKey = null;
|
||||||
//check for a key for this dbid, first check licensed then check trial
|
//check for a key for this dbid, first check licensed then check trial
|
||||||
|
|||||||
@@ -245,38 +245,38 @@ namespace rockfishCore.Util
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//TESTING ONLY this is for development purposes only
|
// //TESTING ONLY this is for development purposes only
|
||||||
//No external usage
|
// //No external usage
|
||||||
public static string GetRavenTestKey(string dbid, bool Perpetual)
|
// public static string GetRavenTestKey(string dbid, bool Perpetual)
|
||||||
{
|
// {
|
||||||
//Build a sample test key, sign it and return it
|
// //Build a sample test key, sign it and return it
|
||||||
AyaNovaLicenseKey k = new AyaNovaLicenseKey();
|
// AyaNovaLicenseKey k = new AyaNovaLicenseKey();
|
||||||
k.LicenseFormat = "8";
|
// k.LicenseFormat = "8";
|
||||||
k.RegisteredTo = "GZ TestCo Inc.";
|
// k.RegisteredTo = "GZ TestCo Inc.";
|
||||||
k.DbId = dbid;
|
// k.DbId = dbid;
|
||||||
k.Perpetual = Perpetual;
|
// k.Perpetual = Perpetual;
|
||||||
if (Perpetual)
|
// if (Perpetual)
|
||||||
{
|
// {
|
||||||
k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddDays(TRIAL_PERIOD_DAYS);
|
// k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddDays(TRIAL_PERIOD_DAYS);
|
||||||
//5k inside staff users 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_INTERNAL_USERS_FEATURE_NAME, Count = 5000 });
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
//SUBSCRIPTION
|
// //SUBSCRIPTION
|
||||||
k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddDays(TRIAL_PERIOD_DAYS);
|
// k.MaintenanceExpiration = k.LicenseExpiration = DateTime.UtcNow.AddDays(TRIAL_PERIOD_DAYS);
|
||||||
|
|
||||||
//20k customer contacts will cover huge seeding level easily
|
// //20k customer contacts will cover huge seeding level easily
|
||||||
//5k inside staff users 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_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 = 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 = MAXIMUM_DATA_GB_FEATURE_NAME, Count = 20 });
|
||||||
|
|
||||||
}
|
// }
|
||||||
|
|
||||||
k.Features.Add(new LicenseFeature() { Feature = TRIAL_FEATURE_NAME, Count = 0 });
|
// k.Features.Add(new LicenseFeature() { Feature = TRIAL_FEATURE_NAME, Count = 0 });
|
||||||
return GenerateRavenKey(k);
|
// return GenerateRavenKey(k);
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user