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
optionsTenantConsistencyOptionsloggerILogger<TenantConsistencyValidator>
Methods
Validate(TenantSourceIdentifiers)
Validates that all provided tenant identifiers are consistent (match).
public Result<string> Validate(TenantSourceIdentifiers sources)
Parameters
sourcesTenantSourceIdentifiersThe tenant identifiers from different sources.