Skip to main content
Table of Contents

Class TenantProjection

Namespace
Stratara.Projections.Multitenancy
Assembly
Stratara.Projections.dll

Built-in projection that materialises the Tenant aggregate (from Stratara.Domain) into the TenantView read store. Handles the full tenant lifecycle: creation, deletion, rename, activation, locale change, and customer reassignment.

[UsedImplicitly]
public sealed class TenantProjection : IProjection
Inheritance
TenantProjection
Implements
Inherited Members
Extension Methods

Remarks

All HandleAsync methods are private and discovered via reflection by IProjectionMethodInvoker. Each handler is idempotent against re-delivery — it checks for existing rows before insert and silently skips updates against deleted views.

Constructors

TenantProjection(IProjectionsUnitOfWork)

Built-in projection that materialises the Tenant aggregate (from Stratara.Domain) into the TenantView read store. Handles the full tenant lifecycle: creation, deletion, rename, activation, locale change, and customer reassignment.

public TenantProjection(IProjectionsUnitOfWork unitOfWork)

Parameters

unitOfWork IProjectionsUnitOfWork

Remarks

All HandleAsync methods are private and discovered via reflection by IProjectionMethodInvoker. Each handler is idempotent against re-delivery — it checks for existing rows before insert and silently skips updates against deleted views.