Docs
Tenantry ProAPI reference

TenantProvisioningContext<TKey> class

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

The tenant an ITenantProvisioningStep<TKey> runs for.

public sealed class TenantProvisioningContext<TKey> where TKey : IEquatable<TKey>, IParsable<TKey>

Type parameters

  • TKey: The tenant identifier type.

Properties

Isolation

Where the tenant's data lives, from MixedModeOptions<TKey>.GetIsolation, or null without mixed mode.

public TenantIsolation? Isolation { get; init; }

Value: TenantIsolation?

Scope

The step's scope, whose tenant is TenantProvisioningContext<TKey>.Tenant. The step was resolved from it, and it is disposed when the step ends.

public required ITenantScope<TKey> Scope { get; init; }

Value: ITenantScope<TKey>

Tenant

The tenant being provisioned.

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

Value: ITenantDescriptor<TKey>

On this page