示例#1
0
 private void JustDecompileGenerated_set_LicenseSkuFeatureMapper(ILicenseSkuFeatureMapper value)
 {
     if (this.LicenseSkuFeatureMapper != null)
     {
         throw new InvalidOperationException("Attempt to assign a new value to LicenseSkuFeature Mapper.");
     }
     this.licenseSkuFeatureMapper = value;
 }
示例#2
0
 public LicenseService(IServices services, string productSpecifierFeature, ILicenseSkuFeatureMapper featureMapper, string baseStudioPidRegistryPath, string baseProductPidRegistryPath, ApplicationLicenses[] studioLicenses, ApplicationLicenses[] applicationLicenses)
 {
     this.services = services;
     if (ExpressionFeatureMapper.Blend != productSpecifierFeature && ExpressionFeatureMapper.Design != productSpecifierFeature && ExpressionFeatureMapper.Encoder != productSpecifierFeature && ExpressionFeatureMapper.Web != productSpecifierFeature)
     {
         throw new ArgumentOutOfRangeException("productSpecifierFeature", "Product specified is not one of: Blend, Design, Encoder, or Web");
     }
     this.productSpecifierFeature = productSpecifierFeature;
     if (string.IsNullOrEmpty(baseStudioPidRegistryPath))
     {
         throw new ArgumentNullException("baseStudioPidRegistryPath");
     }
     if (string.IsNullOrEmpty(baseProductPidRegistryPath))
     {
         throw new ArgumentNullException("baseProductPidRegistryPath");
     }
     this.LicenseSkuFeatureMapper = featureMapper;
     this.licenses = studioLicenses.Concat <ApplicationLicenses>(applicationLicenses).ToList <ApplicationLicenses>();
     this.aggregatedLicenseInformation = new AggregateLicenseInformation(this.licenses);
     this.baseProductPidRegistryPath   = baseProductPidRegistryPath;
     this.baseStudioPidRegistryPath    = baseStudioPidRegistryPath;
     Licensing.Licensing.ShouldEmitLoggingInformation = LicenseService.RetrieveExpressionLicenseLoggingPolicyFromRegistry();
 }