Table of Contents

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

TenantInfo

HasTenant

Gets a value indicating whether a tenant is currently set.

bool HasTenant { get; }

Property Value

bool

TenantId

Gets the ID of the current tenant.

string? TenantId { get; }

Property Value

string

TenantName

Gets the name of the current tenant.

string? TenantName { get; }

Property Value

string