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); }
public static void RegisterLicenseFromFileIfExists(string filePath) { if (!filePath.FileExists()) { return; } var licenseKeyText = filePath.ReadAllText(); LicenseUtils.RegisterLicense(licenseKeyText); }
public static void RegisterLicense(string licenseKeyText) { LicenseUtils.RegisterLicense(licenseKeyText); }