.NET API
ITenantContext
Tracon.Abstractions.dllResolves the current request’s tenant. In a single-tenant setup, returns a fixed value and requires no additional configuration.
public interface ITenantContextRemarks
Section titled “Remarks”In multi-tenant scenarios, the application binds this interface to its own identity infrastructure: an HTTP header, a claim, or a subdomain.
Properties
Section titled “Properties”TenantId
Section titled “ TenantId”The current tenant’s identifier. Never returns empty.
string TenantId { get; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”The value must be canonical — the form
AmbientTenantScope.Normalize returns. The tenant
identifier is matched case-insensitively across the product, and every
layer achieves that by normalizing the value rather than by comparing
case-insensitively. An implementation that returns Acme where
another path resolves acme splits one tenant into two on
PostgreSQL and SQLite, and merges them on SQL Server’s default
collation — the authorization layer and the storage layer then disagree.