IBeam.Licensing.Credits
2.9.43
dotnet add package IBeam.Licensing.Credits --version 2.9.43
NuGet\Install-Package IBeam.Licensing.Credits -Version 2.9.43
<PackageReference Include="IBeam.Licensing.Credits" Version="2.9.43" />
<PackageVersion Include="IBeam.Licensing.Credits" Version="2.9.43" />
<PackageReference Include="IBeam.Licensing.Credits" />
paket add IBeam.Licensing.Credits --version 2.9.43
#r "nuget: IBeam.Licensing.Credits, 2.9.43"
#:package IBeam.Licensing.Credits@2.9.43
#addin nuget:?package=IBeam.Licensing.Credits&version=2.9.43
#tool nuget:?package=IBeam.Licensing.Credits&version=2.9.43
IBeam.Licensing.Credits
Optional integration package that combines ILicenseGate with ICreditPolicyService.
Use this package when a protected operation must require both a license entitlement and credits. Licensing and Credits remain standalone packages; this package only coordinates them.
var result = await licenseCreditGate.ExecuteAsync(
new LicenseCreditGateRequest
{
TenantId = tenantId,
Subject = new LicenseSubject(LicenseSubjectTypes.User, userId),
Entitlement = "ai:chat",
OperationName = "ai.chat.complete",
CreditAccountId = creditAccountId,
CreditBucketKey = "ai-chat",
EstimatedCredits = 10,
MaxCredits = 50,
CreditPolicyMode = CreditPolicyModes.StrictPrepaid
},
async ct =>
{
var response = await chat.CompleteAsync(prompt, ct);
return new CreditMeasuredOperationResult<ChatResponse>(response, response.CreditsUsed);
},
ct);
If the entitlement or seat check fails, the operation is not executed. If the credit check fails, the operation is not executed. If the operation throws after a reservation was created, the reservation is released before the original exception is rethrown.
| 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
- IBeam.Credits (>= 2.9.43)
- IBeam.Licensing (>= 2.9.43)
- IBeam.Services (>= 2.9.43)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.3)
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 |
|---|---|---|
| 2.9.43 | 39 | 7/29/2026 |