TenantKey Class
The key a stored value is kept under within the space of the tenant it is handed.
public static class TenantKeyInheritance System.Object → TenantKey
Methods
TenantKey.CurrentTenant(this ITenantAccessor) Method
The tenant accessor resolved.
public static Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition CurrentTenant(this Abblix.Oidc.Server.Features.MultiTenancy.ITenantAccessor accessor);Parameters
accessor ITenantAccessor
Returns
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
public static string Of(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition tenant, string key);Parameters
tenant TenantDefinition
key System.String
Returns
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.
public static string PartitionOf(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition tenant);Parameters
tenant TenantDefinition
Returns
Exceptions
System.InvalidOperationException
tenant is not named as Abblix.Oidc.Server.Features.MultiTenancy.TenantKey.IsNamed(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition)
requires.