TenantPropagationOptions class
Namespace: Tenantry.Pro.BackgroundServices · Package: Tenantry.Pro · API reference
Configures how a tenant-context propagation integration (Hangfire, MassTransit, Quartz, Rebus) behaves when a job or message has no resolvable tenant — because none was attached, the attached value could not be parsed as TKey, or the tenant was not found in the store.
public sealed class TenantPropagationOptionsProperties
OnMissingTenant
What happens when a job or message runs with no resolvable tenant.
Allow— run the handler without a tenant scope, silently.Warn— run the handler without a tenant scope and log a warning. Default.Reject— throw, so the host's retry/error handling takes over.Skip— acknowledge and drop the job/message without running the handler.
Set Allow for deployments where jobs legitimately run without a tenant (global maintenance, system events) and you do not want warnings.
public MissingTenantBehavior OnMissingTenant { get; set; }Value: MissingTenantBehavior
TenantPropagationDecision<TKey> struct
The outcome of resolving the tenant for a single job or message.
TenantPropagationOutcome enum
The action a tenant-propagation integration should take for a single job or message, as decided by TenantContextPropagationtenantry-pro-backgroundservices-tenantcontextpropagation.md.