Skip to content

ITenantAccessor Interface

Gives the tenant the current request was resolved to.

C#
public interface ITenantAccessor

Derived
↳ AmbientTenantAccessor

Remarks

Read on every call rather than captured, so a singleton holding it sees the tenant of whichever request is running - the way IRequestInfoProvider gives that request's address.

Properties

ITenantAccessor.Current Property

The current request's tenant, or null when the request was not resolved to one.

C#
Abblix.Oidc.Server.Features.MultiTenancy.TenantContext? Current { get; }

Property Value

TenantContext