/// <summary> /// A new license response has been received via activation. Store it for retrieval by Smart Client plugin. /// </summary> /// <param name="message"></param> /// <param name="s"></param> /// <param name="r"></param> /// <returns></returns> private static object NewLicense(VideoOS.Platform.Messaging.Message message, FQID s, FQID r) { // We dont use anything from the actual message, as we simply ask for the license LicenseInformation response = EnvironmentManager.Instance.LicenseManager.GetLicense(SiteLicenseDefinition.SiteLicensePluginId, SiteLicenseDefinition.SiteLicenseId); if (response != null) { if (response.Counter > 1) { response.Counter = 1; } _activatedServerLicense = response.Clone(); _myServerLicense = response.Clone(); EnvironmentManager.Instance.LicenseManager.ReservedLicenseManager.SaveLicenseInformation(_myServerLicense); } return(null); }