Table of Contents

Class TenantContext

Namespace
JD.AI.Core.MultiTenancy
Assembly
JD.AI.Core.dll

Holds the current tenant identity for the request scope. Flows through DI as a scoped service.

public sealed class TenantContext
Inheritance
TenantContext
Inherited Members

Properties

IsResolved

Whether a valid tenant has been resolved for this request.

public bool IsResolved { get; }

Property Value

bool

TenantId

Unique tenant identifier.

public string? TenantId { get; set; }

Property Value

string

TenantName

Human-readable tenant/organization name.

public string? TenantName { get; set; }

Property Value

string