Table of Contents

Class TenantConsistencyOptions

Namespace
Compendium.Multitenancy
Assembly
Compendium.Multitenancy.dll

Configuration options for tenant consistency validation.

public sealed class TenantConsistencyOptions
Inheritance
TenantConsistencyOptions
Inherited Members

Properties

AllowAnonymous

Gets or sets whether to allow anonymous (no tenant) requests. Only applies when RequireAtLeastOneSource is false. Default is false.

public bool AllowAnonymous { get; set; }

Property Value

bool

ExcludedPaths

Gets or sets paths that should be excluded from tenant validation. Example: ["/health", "/metrics", "/.well-known"]. Default includes common health check paths.

public string[] ExcludedPaths { get; set; }

Property Value

string[]

MinimumRequiredSources

Gets or sets the minimum number of sources required. Set to 0 to allow any number of sources. Set to 2 or 3 to require multiple consistent sources. Default is 1.

public int MinimumRequiredSources { get; set; }

Property Value

int

RequireAtLeastOneSource

Gets or sets whether at least one tenant source is required. Default is true.

public bool RequireAtLeastOneSource { get; set; }

Property Value

bool