Skip to content

TenantKey Class

The key a stored value is kept under within the space of the tenant it is handed.

C#
public static class TenantKey

Inheritance System.Object → TenantKey

Methods

TenantKey.CurrentTenant(this ITenantAccessor) Method

The tenant accessor resolved.

C#
public static Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition CurrentTenant(this Abblix.Oidc.Server.Features.MultiTenancy.ITenantAccessor accessor);

Parameters

accessor ITenantAccessor

Returns

TenantDefinition

Exceptions

System.InvalidOperationException
No tenant is resolved: a tenant's operation that lost its tenant on the way - work carried on after the request ended - would write where its tenant never reads, and the tenant would silently miss its data.

TenantKey.Of(TenantDefinition, string) Method

key in the space of tenant.

C#
public static string Of(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition tenant, string key);

Parameters

tenant TenantDefinition
key System.String

Returns

System.String

Exceptions

System.InvalidOperationException
tenant is not named as Abblix.Oidc.Server.Features.MultiTenancy.TenantKey.IsNamed(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition) requires.

Remarks

The space holds no separator of the key, so tenant a with key b:x and tenant a:b with key x cannot be one entry: a tenant named a:b builds no key at all.

TenantKey.PartitionOf(TenantDefinition) Method

The partition of the key ring that keeps the keys the server mints for tenant.

C#
public static string PartitionOf(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition tenant);

Parameters

tenant TenantDefinition

Returns

System.String

Exceptions

System.InvalidOperationException
tenant is not named as Abblix.Oidc.Server.Features.MultiTenancy.TenantKey.IsNamed(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition) requires.