Table of Contents

Namespace Millrace.Tenancy

Classes

AmbientTenantContextAccessor

Default ITenantContextAccessor: an AsyncLocal<T> ambient value.

Interfaces

ITenantContextAccessor

Captures the ambient tenant at enqueue/start time and restores it inside worker execution scopes, so consumer code (and its data filters) sees the right tenant (ARCHITECTURE.md §8). Single-tenant applications never touch this — the default implementation flows null and jobs carry no tenant id.