Exemple #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);
        }
Exemple #2
0
        public static void RegisterLicenseFromFileIfExists(string filePath)
        {
            if (!filePath.FileExists())
            {
                return;
            }

            var licenseKeyText = filePath.ReadAllText();

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