ServiceStack.Licensing.RegisterLicenseFromFileIfExists C# (CSharp) Method

RegisterLicenseFromFileIfExists() public static method

public static RegisterLicenseFromFileIfExists ( string filePath ) : void
filePath string
return void
        public static void RegisterLicenseFromFileIfExists(string filePath)
        {
            if (!filePath.FileExists())
                return;

            var licenseKeyText = filePath.ReadAllText();
            LicenseUtils.RegisterLicense(licenseKeyText);
        }
    }