static License GetTrialLicense()
{
var trialStartDate = TrialStartDateStore.GetTrialStartDate();
var trialLicense = License.TrialLicense(trialStartDate);
//Check trial is still valid
if (LicenseExpirationChecker.HasLicenseExpired(trialLicense))
{
Logger.WarnFormat("Trial for the Particular Service Platform has expired");
}
else
{
var message = $"Trial for the Particular Service Platform has been active since {trialStartDate.ToLocalTime().ToShortDateString()}.";
Logger.Info(message);
}
return trialLicense;
}