Offline license-key validation for the commercially licensed Regira packages. A key is an RSA-signed token verified against a public key embedded in the package, with no network call. services.UseRegira(configuration) (reads Regira:LicenseKeys) or services.UseRegira(licenseKey) registers each key as a License, writes its settings to the console (and through ILogger when the host starts) and reminds you when it nears expiry; the licensed packages then take the best license per product and validate it with LicenseValidator. With no key registered, the free tier applies.
Keep the keys in configuration: user-secrets in development, the environment or a key vault in production. Regira:LicenseKeys is an array:
{ "Regira": { "LicenseKeys": [ "<your-license-key>" ] } }
dotnet user-secrets set "Regira:LicenseKeys:0" "<key>" # Regira__LicenseKeys__0 in the environment
<PackageReference Include="Regira.Licensing" Version="6.*" />
Regira.Entities.DependencyInjection and Regira.Office.Clients depend on this package, so an application usually receives it transitively. UseRegira lives in the Regira.Licensing.DependencyInjection namespace; call it before the licensed module’s setup.
UseRegira from configuration or with explicit keysRegira Commercial License, with a free tier that applies automatically — no key is needed within its limits. A license key removes the limits and is validated fully offline. See the license text and the licensing overview; keys are available at regira.com/licensing.