Table of Contents

Class TenantConsistencyValidator

Namespace
Compendium.Multitenancy
Assembly
Compendium.Multitenancy.dll

Default implementation of ITenantConsistencyValidator.

public sealed class TenantConsistencyValidator : ITenantConsistencyValidator
Inheritance
TenantConsistencyValidator
Implements
Inherited Members

Constructors

TenantConsistencyValidator(TenantConsistencyOptions, ILogger<TenantConsistencyValidator>)

Initializes a new instance of the TenantConsistencyValidator class.

public TenantConsistencyValidator(TenantConsistencyOptions options, ILogger<TenantConsistencyValidator> logger)

Parameters

options TenantConsistencyOptions
logger ILogger<TenantConsistencyValidator>

Methods

Validate(TenantSourceIdentifiers)

Validates that all provided tenant identifiers are consistent (match).

public Result<string> Validate(TenantSourceIdentifiers sources)

Parameters

sources TenantSourceIdentifiers

The tenant identifiers from different sources.

Returns

Result<string>

A result indicating success or validation failure with details.