LicenseChecker Class
Abblix.Oidc.Server
Abblix.Oidc.Server.Features.Licensing
LicenseChecker Class
Manages and enforces licensing constraints on clients and issuers within the application, ensuring compliance with defined licensing terms.
public static class LicenseChecker
Inheritance System.Object → LicenseChecker
Remarks
This class dynamically validates the number of clients and issuers against the licensing terms, logging warnings or errors when the application operates beyond these constraints. It supports real-time updates to the license, allowing the application to adjust to new licenses dynamically.
Methods
LicenseChecker.CheckClientLicense(this ClientInfo) Method
Applies licensing checks to client information.
public static Abblix.Oidc.Server.Features.ClientInformation.ClientInfo? CheckClientLicense(this Abblix.Oidc.Server.Features.ClientInformation.ClientInfo? clientInfo);
Parameters
clientInfo ClientInfo
The client information to check against licensing constraints.
Returns
ClientInfo
The client information if it complies with the licensing constraints; otherwise, logs an error.
LicenseChecker.CheckIssuer(string) Method
Applies licensing checks to an issuer value.
public static string CheckIssuer(string issuer);
Parameters
issuer System.String
The issuer to check against licensing constraints.
Returns
System.String
The issuer if it complies with the licensing constraints; otherwise, logs an error.
LicenseChecker.WithLicenseCheck(this Task<ClientInfo>) Method
Asynchronously applies licensing checks to a task that returns client information.
public static System.Threading.Tasks.Task<Abblix.Oidc.Server.Features.ClientInformation.ClientInfo?> WithLicenseCheck(this System.Threading.Tasks.Task<Abblix.Oidc.Server.Features.ClientInformation.ClientInfo?> clientInfo);
Parameters
clientInfo System.Threading.Tasks.Task<ClientInfo>
The task returning client information to be checked against licensing constraints.
Returns
System.Threading.Tasks.Task<ClientInfo>
A task that, upon completion, returns the client information if it complies with the licensing
constraints; otherwise, logs an error.