TenantPropagationOptions class
Namespace: Tenantry.Pro · Package: Tenantry.Pro · API reference
What a tenant-propagation integration (Hangfire, MassTransit, Quartz.NET, Rebus) does with a job or message that carries no tenant, or a tenant it cannot find. Set for each integration when it is added, as in pro.AddRebusPropagation(o => o.OnMissingTenant = TenantPropagationBehavior.Reject).
public sealed class TenantPropagationOptionsProperties
OnMissingTenant
What happens to a job or message that carries no tenant, such as one created outside a request or by a scheduler. The default is TenantPropagationBehavior.Warn: it runs without a tenant, and a warning is logged.
public TenantPropagationBehavior OnMissingTenant { get; set; }Value: TenantPropagationBehavior
OnUnresolvedTenant
What happens to a job or message that carries a tenant id that is not a valid id of the tenant key type, or that the tenant store does not have (a tenant deleted since, or an id from another system). The default is TenantPropagationBehavior.Reject: it fails, so the host's retry and error handling take over, and it never runs as no tenant.
public TenantPropagationBehavior OnUnresolvedTenant { get; set; }Value: TenantPropagationBehavior
TenantPropagationBehavior enum
What a tenant-propagation integration Hangfire, MassTransit, Quartz.NET, Rebus does with a job or message whose tenant it cannot make current.
TenantProvisioningContext<TKey> class
The tenant an ITenantProvisioningStep<TKey>tenantry-pro-itenantprovisioningstep.md runs for.