Docs
Tenantry ProAPI reference

TenantPropagationDecision<TKey> struct

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

The outcome of resolving the tenant for a single job or message.

public readonly record struct TenantPropagationDecision<TKey> : IEquatable<TenantPropagationDecision<TKey>> where TKey : IEquatable<TKey>, IParsable<TKey>

Type parameters

  • TKey: The tenant identifier type.

Implements IEquatable<TenantPropagationDecision<TKey>>.

Constructors

TenantPropagationDecision(TenantPropagationOutcome, ITenantDescriptor<TKey>?)

The outcome of resolving the tenant for a single job or message.

public TenantPropagationDecision(TenantPropagationOutcome Outcome, ITenantDescriptor<TKey>? Tenant)

Parameters:

Properties

Outcome

What the integration should do.

public TenantPropagationOutcome Outcome { get; init; }

Value: TenantPropagationOutcome

Tenant

The tenant to scope into when Outcome is TenantPropagationOutcome.RunInScope; otherwise null.

public ITenantDescriptor<TKey>? Tenant { get; init; }

Value: ITenantDescriptor<TKey>

On this page