Class TenantSourceIdentifiers
- Namespace
- Compendium.Multitenancy
- Assembly
- Compendium.Multitenancy.dll
Contains tenant identifiers from various sources for consistency validation.
public sealed record TenantSourceIdentifiers : IEquatable<TenantSourceIdentifiers>
- Inheritance
-
TenantSourceIdentifiers
- Implements
- Inherited Members
Properties
AreConsistent
Gets whether all non-null sources have the same tenant ID.
public bool AreConsistent { get; }
Property Value
HeaderTenantId
Gets the tenant ID from the HTTP header (X-Tenant-ID).
public string? HeaderTenantId { get; init; }
Property Value
JwtTenantId
Gets the tenant ID from the JWT claim.
public string? JwtTenantId { get; init; }
Property Value
ResolvedTenantId
Gets the resolved tenant ID (if consistent).
public string? ResolvedTenantId { get; }
Property Value
SourceCount
Gets the count of non-null tenant sources.
public int SourceCount { get; }
Property Value
SubdomainTenantId
Gets the tenant ID extracted from the subdomain.
public string? SubdomainTenantId { get; init; }
Property Value
Methods
GetAllIds()
Gets all non-null tenant IDs.
public IEnumerable<string> GetAllIds()