Class AmbientTenantContextAccessor
Default ITenantContextAccessor: an AsyncLocal<T> ambient value.
public sealed class AmbientTenantContextAccessor : ITenantContextAccessor
- Inheritance
-
AmbientTenantContextAccessor
- Implements
- Inherited Members
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.