CleanArchitecture.Extensions is a small set of opt-in NuGet packages that plug into Jason Taylor's Clean Architecture template without forking it. The goal is to stay aligned with the template's layering and conventions while adding focused capabilities.
Quick links:
- Shipped:
CleanArchitecture.Extensions.Caching(net10.0) - Shipped:
CleanArchitecture.Extensions.Multitenancy(core, host-agnostic, net10.0) - Shipped:
CleanArchitecture.Extensions.Multitenancy.AspNetCore(ASP.NET Core adapters, net10.0) - Shipped:
CleanArchitecture.Extensions.Multitenancy.EFCore(EF Core adapters, net10.0) - Planned: Multitenancy adapters (Identity, Provisioning, Redis, Sharding, Storage)
- Install:
dotnet add package CleanArchitecture.Extensions.Caching
- Register:
services.AddCleanArchitectureCaching(); services.AddMediatR(cfg => cfg.AddCleanArchitectureCachingPipeline());
- Configure caching options as needed.
- No other template changes required.
- Install:
dotnet add src/Application/Application.csproj package CleanArchitecture.Extensions.Multitenancy dotnet add src/Infrastructure/Infrastructure.csproj package CleanArchitecture.Extensions.Multitenancy
- Register:
services.AddCleanArchitectureMultitenancy(); services.AddMediatR(cfg => cfg.AddCleanArchitectureMultitenancyPipeline());
- Resolve tenants in your host and set the current context.
- Install:
dotnet add src/Web/Web.csproj package CleanArchitecture.Extensions.Multitenancy.AspNetCore
- Register:
services.AddCleanArchitectureMultitenancyAspNetCore(autoUseMiddleware: true);
- If you prefer manual wiring, add middleware:
app.UseCleanArchitectureMultitenancy();
Docs to read next:
- Caching overview
- Multitenancy core overview
- Multitenancy.AspNetCore overview
- Multitenancy.EFCore overview
- Extensions catalog
- Roadmap
src/packagestests/test projectsdocs/documentation site sourcesamples/sample projects (empty today)
Start with the roadmap and the docs. Keep changes aligned with the Jason Taylor template conventions and layering.