Skip to content

Configuration

Configuration lives in src/ConnectSoft.Saas.Entitlements.Application/appsettings*.json; cross-cutting sections come from the Base Template. Entitlements-relevant sections:

Multitenancy

Shared-DB row isolation by default; structurally identical Multitenancy section to the other SaaS contexts (SharedDb, X-Tenant-Id, tid, tenant-id). Entitlements depends on TenantId produced by the Tenants context but references it as an opaque string - it does not call the Tenants service.

Persistence

Connection string name ConnectSoft.Saas.Entitlements; shipped dialect MsSql2012Dialect. One entitlement per tenant is enforced by UQ_Entitlements_TenantId.

Catalog inbound

The catalog reaction saga consumes events published by Products Catalog. Inbound topics are defined in EntitlementsConstants.CatalogInboundEventTopics (catalog.domain.v1.product-retired, product-created, product-updated). Only product-retired has a handler today. Configure the MassTransit transport so these events are delivered.

See also