Docs
Tenantry ProAPI reference

TenantPropagationBehavior enum

Namespace: Tenantry.Pro · Package: Tenantry.Pro · API reference

What a tenant-propagation integration (Hangfire, MassTransit, Quartz.NET, Rebus) does with a job or message whose tenant it cannot make current. Set with TenantPropagationOptions.OnMissingTenant and TenantPropagationOptions.OnUnresolvedTenant.

public enum TenantPropagationBehavior

Values

ValueDescription
Allow = 0Run the job or message handler without a tenant, silently.
Warn = 1As TenantPropagationBehavior.Allow, but log a warning.
Skip = 2Do not run the job or message handler, raise no error, and log a warning. What then happens to the job or message depends on the host: Hangfire deletes the job, Quartz.NET counts the run as done, Rebus acknowledges the message, and MassTransit moves it to the endpoint's _skipped queue.
Reject = 3Throw TenantNotResolvedException (TenantNotFoundException for a tenant the store does not have), so the host's retry and error handling take over: a failed job, or a message moved to the error queue.

On this page