ServiceStack.Licensing.RegisterLicenseFromFile C# (CSharp) Method

RegisterLicenseFromFile() public static method

public static RegisterLicenseFromFile ( string filePath ) : void
filePath string
return void
        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);
        }