internal void InitializeLicense(string licenseText, string licenseFilePath) { var licenseSources = LicenseSources.GetLicenseSources(licenseText, licenseFilePath); result = ActiveLicense.Find("NServiceBus", licenseSources); LogFindResults(result); var licenseStatus = result.License.GetLicenseStatus(); LogLicenseStatus(licenseStatus, Logger, result.License); if (licenseStatus == LicenseStatus.InvalidDueToExpiredTrial) { OpenTrialExtensionPage(); } }
public void InitializeLicense(string licenseText, string licenseFilePath) { var licenseSources = LicenseSources.GetLicenseSources(licenseText, licenseFilePath); result = ActiveLicense.Find("NServiceBus", licenseSources); var developerLicenseUrl = CreateDeveloperLicenseUrl(); LogFindResults(result); var licenseStatus = result.License.GetLicenseStatus(); LogLicenseStatus(licenseStatus, Logger, result.License, developerLicenseUrl); if (licenseStatus == LicenseStatus.InvalidDueToExpiredTrial) { OpenDeveloperLicensePage(developerLicenseUrl); } }
internal void InitializeLicense(string licenseText, string licenseFilePath) { var licenseSources = LicenseSources.GetLicenseSources(licenseText, licenseFilePath); result = ActiveLicense.Find("NServiceBus", licenseSources); LogFindResults(result); if (result.HasExpired) { if (result.License.IsTrialLicense) { Logger.Warn("Trial for the Particular Service Platform has expired."); OpenTrialExtensionPage(); } else { Logger.Fatal("Your license has expired! To renew your license, visit: https://particular.net/licensing"); } } }
internal void InitializeLicense(string licenseText, string licenseFilePath) { var licenseSources = LicenseSources.GetLicenseSources(licenseText, licenseFilePath); var result = ActiveLicense.Find("NServiceBus", licenseSources); license = result.License; LogFindResults(result); if (result.HasExpired) { if (license.IsTrialLicense) { Logger.WarnFormat("Trial for the Particular Service Platform has expired."); PromptUserForLicenseIfTrialHasExpired(); } else { Logger.Fatal("Your license has expired! You can renew it at https://particular.net/licensing."); } } }
internal void InitializeLicense(string licenseText, string licenseFilePath) { var licenseSources = LicenseSources.GetLicenseSources(licenseText, licenseFilePath); result = ActiveLicense.Find("NServiceBus", licenseSources); }