Skip to content

ITenantStore Interface

Holds the tenants a deployment serves, where every instance of the server reads them.

C#
public interface ITenantStore

Derived
↳ OptionsTenantStore

Remarks

The server reads the whole list at startup and again on a timer (RefreshTenantsEvery), so a tenant the store gains, changes or loses reaches every instance within one period. A tenant the checks of the tenant list refuse is left out and logged, and the others are served. The store assigns each tenant's Generation when it is created.

The server takes the tenants of its settings for all its tenants only while the store is OptionsTenantStore itself. Any other, one wrapping it included, is taken to add tenants while the server runs: the server may start with none, and what the settings' tenants alone decide at startup, such as the key ring partitions keys may be adopted into, is left to each tenant's arrival.

Methods

ITenantStore.ListAsync(CancellationToken) Method

Every tenant the store holds.

C#
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Abblix.Oidc.Server.Features.MultiTenancy.StoredTenant>> ListAsync(System.Threading.CancellationToken cancellationToken);

Parameters

cancellationToken System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<StoredTenant>>