NServiceBus.LicenseManager.GetTrialLicense C# (CSharp) Method

GetTrialLicense() static private method

static private GetTrialLicense ( ) : License
return Particular.Licensing.License
        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;
        }