Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 737 Bytes

File metadata and controls

9 lines (5 loc) · 737 Bytes

MultitenantExample.AspNetCore

Per-tenant registration overrides in an ASP.NET Core application, with the tenant taken from a ?tenant= query string. Tenants without an override fall back to the container-wide default, which is the behaviour most people want to confirm.

Packages: Autofac.AspNetCore.Multitenant

Run dotnet run --project src/MultitenantExample.AspNetCore, then compare http://localhost:5000/api/tenant, http://localhost:5000/api/tenant?tenant=alpha, and http://localhost:5000/api/tenant?tenant=gamma.

See Multitenant Applications for the documentation this example follows.