private Rhino.Licensing.LicenseValidator getValidator(string path)
        {
            var validator = new Rhino.Licensing.LicenseValidator(getPublickey(), path);

            validator.DisableFutureChecks();
            return(validator);
        }
Example #2
0
        public static License ValidateLicense(string licensePath)
        {
            License license = License.InvalidLicense;

            if (File.Exists(licensePath))
            {
                var validator = new Rhino.Licensing.LicenseValidator(LoadPublicKey(), licensePath);
                try
                {
                    validator.AssertValidLicense();

                    license = License.CreateFrom(validator);
                }
                catch (Rhino.Licensing.RhinoLicensingException)
                {
                    license = License.InvalidLicense;
                }
            }

            return license;
        }
 private Rhino.Licensing.LicenseValidator getValidator(string path)
 {
     var validator = new Rhino.Licensing.LicenseValidator(getPublickey(), path);
     validator.DisableFutureChecks();
     return validator;
 }