Docs
Tenantry ProAPI reference

TenantProvisioningResult<TKey> class

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

The outcome of ITenantProvisioner<TKey>.ProvisionAsync.

public sealed record TenantProvisioningResult<TKey> : IEquatable<TenantProvisioningResult<TKey>>

Type parameters

  • TKey: The tenant identifier type.

Implements IEquatable<TenantProvisioningResult<TKey>>.

Properties

Duration

How long provisioning took.

public TimeSpan Duration { get; init; }

Value: TimeSpan

Error

The exception the first failed step threw, or null if none failed.

public Exception? Error { get; }

Value: Exception

Steps

Every registered step's outcome, in the order the steps run.

public required IReadOnlyList<TenantProvisioningStepResult> Steps { get; init; }

Value: IReadOnlyList<TenantProvisioningStepResult>

Succeeded

Whether no step failed.

public bool Succeeded { get; }

Value: bool

TenantId

The tenant that was provisioned.

public required TKey TenantId { get; init; }

Value: TKey

On this page