/// <summary> /// Send license information to the activation server after activating a free license. /// In this case both previous and current editions are "free" /// This task will run on a separate thread. /// </summary> /// <param name="hosts">Pass in a Dictionary containing the hosts and their previous license data</param> public static void SendActivationData(Dictionary<XenAPI.Host, LicenseDataStruct> hosts) { // Supply the state information required by the task. SendLicenseDataHelper sendLicenseDataHelper = new SendLicenseDataHelper(hosts, "activation", XenAPI.Host.GetEditionText(XenAPI.Host.Edition.Free), true); // start a separate thread Thread thread = new Thread(new ThreadStart(sendLicenseDataHelper.ThreadProc)); thread.Name = "Process licensing data for activating a free license)"; thread.IsBackground = true; thread.Start(); }
/// <summary> /// Send license information to the activation server after activating a free license. /// In this case both previous and current editions are "free" /// This task will run on a separate thread. /// </summary> /// <param name="hosts">Pass in a Dictionary containing the hosts and their previous license data</param> public static void SendActivationData(Dictionary <XenAPI.Host, LicenseDataStruct> hosts) { // Supply the state information required by the task. SendLicenseDataHelper sendLicenseDataHelper = new SendLicenseDataHelper(hosts, "activation", hosts.Keys.First().GetEditionText(XenAPI.Host.Edition.Free), true); // start a separate thread Thread thread = new Thread(new ThreadStart(sendLicenseDataHelper.ThreadProc)); thread.Name = "Process licensing data for activating a free license)"; thread.IsBackground = true; thread.Start(); }
/// <summary> /// Send license information to the activation server after assigning or releasing a paid license. /// This task will run on a separate thread. /// </summary> /// <param name="hosts">Pass in a Dictionary containing the hosts and their previous license data</param> /// <param name="currentEdition">Pass in the current license edition</param> public static void SendLicenseEditionData(Dictionary<XenAPI.Host, LicenseDataStruct> hosts, string currentEdition) { // Supply the state information required by the task. SendLicenseDataHelper sendLicenseDataHelper = new SendLicenseDataHelper(hosts, "apply_license", currentEdition, true); // start a separate thread Thread thread = new Thread(new ThreadStart(sendLicenseDataHelper.ThreadProc)); thread.Name = "Process licensing data for assigning or releasing a license"; thread.IsBackground = true; thread.Start(); }
/// <summary> /// Send license information to the activation server after assigning or releasing a paid license. /// This task will run on a separate thread. /// </summary> /// <param name="hosts">Pass in a Dictionary containing the hosts and their previous license data</param> /// <param name="currentEdition">Pass in the current license edition</param> public static void SendLicenseEditionData(Dictionary <XenAPI.Host, LicenseDataStruct> hosts, string currentEdition) { // Supply the state information required by the task. SendLicenseDataHelper sendLicenseDataHelper = new SendLicenseDataHelper(hosts, "apply_license", currentEdition, true); // start a separate thread Thread thread = new Thread(new ThreadStart(sendLicenseDataHelper.ThreadProc)); thread.Name = "Process licensing data for assigning or releasing a license"; thread.IsBackground = true; thread.Start(); }