TenantIssuerLocal<T> Class
One value for each tenant, since each tenant is an issuer.
public sealed class TenantIssuerLocal<T> : Abblix.Oidc.Server.Features.Issuer.IIssuerLocal<T>
where T : classType parameters
T
Inheritance System.Object → TenantIssuerLocal<T>
Implements Abblix.Oidc.Server.Features.Issuer.IIssuerLocal<T>
Constructors
TenantIssuerLocal(ITenantCatalog) Constructor
One value for each tenant, since each tenant is an issuer.
public TenantIssuerLocal(Abblix.Oidc.Server.Features.MultiTenancy.ITenantCatalog catalog);Parameters
catalog ITenantCatalog
The catalog the tenants are resolved from, asked whether it still serves the definition a request holds.
Methods
TenantIssuerLocal<T>.GetOrCreate(TenantDefinition, object, Func<T>) Method
The value for tenant, built by create from source the first time that tenant asks for it, and built again whenever the tenant's source is another object - as its definition is after a change.
public T GetOrCreate(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition tenant, object? source, System.Func<T> create);Parameters
tenant TenantDefinition
The tenant the value is kept for.
source System.Object
What the value is built from.
create System.Func<T>
Builds the value.
Implements GetOrCreate(TenantDefinition, object, Func<T>)
Returns
Remarks
The source is compared by reference: what a tenant declares is the same object until its definition changes.