Configuration¶
Configuration lives in src/ConnectSoft.Saas.Tenants.Application/appsettings*.json; cross-cutting sections come from the Base Template. Tenants-relevant sections:
Multitenancy¶
"Multitenancy": {
"DeploymentKind": "SharedDb",
"DedicatedSingleTenant": true,
"TenantResolutionStrategy": "ConfigurationFirstThenJwtThenHeaders",
"HttpTenantHeaderName": "X-Tenant-Id",
"JwtTenantClaimType": "tid",
"MessagingTenantHeaderName": "tenant-id"
}
As the tenant registry, this service both manages tenant partitions and is itself tenant-scoped via the SaasTenantFilter.
Persistence¶
NHibernate config: connection string name ConnectSoft.Saas.Tenants, shipped dialect MsSql2012Dialect (MicrosoftDataSqlClientDriver). The template description advertises multi-dialect generation via the base template, but the committed hibernate.cfg.xml / hibernate-docker.cfg.xml target SQL Server only.
Multitenancy resolution (README/ADR-0100)¶
The README documents ITenantContext, the JWT tid claim, and tenant-id gRPC metadata propagation per ADR-0100.