Interface ITenantContext
- Namespace
- Compendium.Multitenancy
- Assembly
- Compendium.Multitenancy.dll
Provides access to the current tenant context information. Enables applications to operate in a multi-tenant environment by tracking the active tenant.
public interface ITenantContext
Properties
CurrentTenant
Gets the complete information of the current tenant.
TenantInfo? CurrentTenant { get; }
Property Value
HasTenant
Gets a value indicating whether a tenant is currently set.
bool HasTenant { get; }
Property Value
TenantId
Gets the ID of the current tenant.
string? TenantId { get; }
Property Value
TenantName
Gets the name of the current tenant.
string? TenantName { get; }