Pocok.AppDefaults.Licensing
0.2.0-alpha.7
Prefix Reserved
dotnet add package Pocok.AppDefaults.Licensing --version 0.2.0-alpha.7
NuGet\Install-Package Pocok.AppDefaults.Licensing -Version 0.2.0-alpha.7
<PackageReference Include="Pocok.AppDefaults.Licensing" Version="0.2.0-alpha.7" />
<PackageVersion Include="Pocok.AppDefaults.Licensing" Version="0.2.0-alpha.7" />
<PackageReference Include="Pocok.AppDefaults.Licensing" />
paket add Pocok.AppDefaults.Licensing --version 0.2.0-alpha.7
#r "nuget: Pocok.AppDefaults.Licensing, 0.2.0-alpha.7"
#:package Pocok.AppDefaults.Licensing@0.2.0-alpha.7
#addin nuget:?package=Pocok.AppDefaults.Licensing&version=0.2.0-alpha.7&prerelease
#tool nuget:?package=Pocok.AppDefaults.Licensing&version=0.2.0-alpha.7&prerelease
Pocok.AppDefaults.Licensing
Configuration-driven host policy for Pocok.Licensing.
HostApplicationBuilder builder = Host.CreateApplicationBuilder(args);
builder.AddPocokLicensingDefaults(options =>
{
options.RequiredModules = ["Core"];
options.FailureBehavior = LicenseFailureBehavior.Block;
});
Configuration is read from Pocok:Licensing, then the optional delegate is applied. Relative license and public-key
paths
are resolved against the host content root. Applying the defaults twice throws.
At startup, the package asynchronously reloads and verifies the license. Block assigns the configured exit code and
throws
LicenseException, preventing later hosted services from starting. Warn logs and continues. A background service then
reloads and validates at RevalidationInterval; blocking failures request host shutdown. Blocking exit codes are
limited
to the portable range from 1 through 255.
The options object is resolved once and available through IOptions<LicenseOptions>. File reads honor host
cancellation.
Runtime validation is provided by the thread-safe singleton ILicenseService. This package does not add interception,
reflection scanning, endpoint middleware, process termination, or service-provider corruption. Applications retain
operation-level enforcement through Demand and DemandFor.
See docs/licensing.md for configuration, security
guidance, and the release gate.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.Configuration.Binder (>= 10.0.10)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Options (>= 10.0.10)
- Pocok.AppDefaults (>= 0.2.0-alpha.7)
- Pocok.Licensing (>= 0.2.0-alpha.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.0-alpha.7 | 46 | 7/20/2026 |
| 0.2.0-alpha.6 | 49 | 7/20/2026 |
| 0.2.0-alpha.5 | 42 | 7/18/2026 |