Ejemplo n.º 1
0
        private IActivateResponse ActivateProduct(Guid skuId)
        {
            ActivateResponse activateResponse = LicenseService.ActivateProductProcess(skuId.ToString("B"));

            if (activateResponse.Success)
            {
                this.UpdateLicensing();
            }
            activateResponse.ActivationStatus = (activateResponse.Success ? ActivationStatus.Activated : ActivationStatus.Failed);
            return(activateResponse);
        }
Ejemplo n.º 2
0
        private IActivateResponse EnterOfflineConfirmationId(Guid skuId, string installationId, string confirmationId)
        {
            string           str = skuId.ToString("B");
            ActivateResponse activateResponse = LicenseService.EnterOfflineConfirmationIdProcess(str, installationId, confirmationId);

            if (activateResponse.Success)
            {
                this.UpdateLicensing();
            }
            activateResponse.ActivationStatus = (activateResponse.Success ? ActivationStatus.Activated : ActivationStatus.Failed);
            return(activateResponse);
        }