IIssuerLocal<T> Interface
A value a service builds once for each tenant it serves, such as a registry built from what the tenant declares.
public interface IIssuerLocal<T>
where T : classType parameters
T
The type of the value.
Derived
↳ TenantIssuerLocal<T>
Remarks
Each service that asks for one gets its own, so two services keeping values of the same type never share them, and the values last as long as that service does: one registered per request builds them for every request.
Methods
IIssuerLocal<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.
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.
Returns
Remarks
The source is compared by reference: what a tenant declares is the same object until its definition changes.