示例#1
0
        public static void RegisterLicenseFromFile(string filePath)
        {
            if (!filePath.FileExists())
            {
                throw new LicenseException("License file does not exist: " + filePath).Trace();
            }

            var licenseKeyText = filePath.ReadAllText();

            LicenseUtils.RegisterLicense(licenseKeyText);
        }
示例#2
0
        public static void RegisterLicenseFromFileIfExists(string filePath)
        {
            if (!filePath.FileExists())
            {
                return;
            }

            var licenseKeyText = filePath.ReadAllText();

            LicenseUtils.RegisterLicense(licenseKeyText);
        }
示例#3
0
 public static void RegisterLicense(string licenseKeyText)
 {
     LicenseUtils.RegisterLicense(licenseKeyText);
 }