示例#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")
     });
 }
示例#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());
 }
示例#3
0
 public List <PhoneActivationData> GetInstallationIdsForMachine()
 {
     this.cachedInstallationId = this.licenseService.GetOfflineInstallationId();
     return(ActivationDataRepository.SplitLicenseStringIntoInstallationIdGroups(this.cachedInstallationId));
 }