Table of Contents

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

bool

HeaderTenantId

Gets the tenant ID from the HTTP header (X-Tenant-ID).

public string? HeaderTenantId { get; init; }

Property Value

string

JwtTenantId

Gets the tenant ID from the JWT claim.

public string? JwtTenantId { get; init; }

Property Value

string

ResolvedTenantId

Gets the resolved tenant ID (if consistent).

public string? ResolvedTenantId { get; }

Property Value

string

SourceCount

Gets the count of non-null tenant sources.

public int SourceCount { get; }

Property Value

int

SubdomainTenantId

Gets the tenant ID extracted from the subdomain.

public string? SubdomainTenantId { get; init; }

Property Value

string

Methods

GetAllIds()

Gets all non-null tenant IDs.

public IEnumerable<string> GetAllIds()

Returns

IEnumerable<string>