Exemplo n.º 1
0
 public ActivationInfo(ActivationDataRepository dataRepository)
 {
     this.dataRepository = dataRepository;
     this.ValidationIds  = new ReadOnlyCollection <PhoneActivationData>((IList <PhoneActivationData>) new List <PhoneActivationData>()
     {
         new PhoneActivationData("A"),
         new PhoneActivationData("B"),
         new PhoneActivationData("C"),
         new PhoneActivationData("D"),
         new PhoneActivationData("E"),
         new PhoneActivationData("F"),
         new PhoneActivationData("G"),
         new PhoneActivationData("H")
     });
 }
Exemplo n.º 2
0
 public IActivateResponse TryPhoneActivation(IList <PhoneActivationData> validationIds)
 {
     if (!string.IsNullOrEmpty(this.cachedInstallationId))
     {
         return(this.licenseService.EnterOfflineConfirmationId(this.cachedInstallationId, ActivationDataRepository.BuildValidationIdString(validationIds)));
     }
     return((IActivateResponse) new ActivateResponse());
 }
Exemplo n.º 3
0
 public List <PhoneActivationData> GetInstallationIdsForMachine()
 {
     this.cachedInstallationId = this.licenseService.GetOfflineInstallationId();
     return(ActivationDataRepository.SplitLicenseStringIntoInstallationIdGroups(this.cachedInstallationId));
 }