Interface 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.
public interface ITenantContextAccessor
Properties
Methods
- BeginScope(string?)
Makes
tenantIdambient until the returned scope is disposed. Workers call this before resolving a job's target so execution observes the tenant the job was enqueued under.