Docs
Tenantry ProAPI reference

TenantProvisioningResult<TKey> class

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

Describes the outcome of a ITenantLifecycleManager<TKey>.ProvisionAsync call.

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

Type parameters

  • TKey: The tenant identifier type.

Implements IEquatable<TenantProvisioningResult<TKey>>.

Properties

CompletedUpTo

The last pipeline stage that completed successfully. Use this to determine where to resume after a partial failure. TenantProvisioningStep.Complete when the entire pipeline succeeded. TenantProvisioningStep.None when the pipeline failed before any step ran.

public required TenantProvisioningStep CompletedUpTo { get; init; }

Value: TenantProvisioningStep

Duration

Total wall-clock time taken to run the entire provisioning pipeline.

public TimeSpan Duration { get; init; }

Value: TimeSpan

Error

The first exception thrown during the pipeline, or null when successful. When TenantLifecycleOptions.StopOnFailure is false, this captures the first failure even if later steps were attempted.

public Exception? Error { get; init; }

Value: Exception

Succeeded

true if every configured pipeline step completed without error; false if any step failed.

public required bool Succeeded { get; init; }

Value: bool

TenantId

The tenant that was provisioned.

public required TKey TenantId { get; init; }

Value: TKey

On this page