TCIS.MultiTenancy.AspNetCore
1.0.0-rc.24
See the version list below for details.
dotnet add package TCIS.MultiTenancy.AspNetCore --version 1.0.0-rc.24
NuGet\Install-Package TCIS.MultiTenancy.AspNetCore -Version 1.0.0-rc.24
<PackageReference Include="TCIS.MultiTenancy.AspNetCore" Version="1.0.0-rc.24" />
<PackageVersion Include="TCIS.MultiTenancy.AspNetCore" Version="1.0.0-rc.24" />
<PackageReference Include="TCIS.MultiTenancy.AspNetCore" />
paket add TCIS.MultiTenancy.AspNetCore --version 1.0.0-rc.24
#r "nuget: TCIS.MultiTenancy.AspNetCore, 1.0.0-rc.24"
#:package TCIS.MultiTenancy.AspNetCore@1.0.0-rc.24
#addin nuget:?package=TCIS.MultiTenancy.AspNetCore&version=1.0.0-rc.24&prerelease
#tool nuget:?package=TCIS.MultiTenancy.AspNetCore&version=1.0.0-rc.24&prerelease
TCIS.MultiTenancy.AspNetCore
The library providing extension components and Middleware to support Multi-Tenancy architecture in ASP.NET Core applications within the TCIS ecosystem, built upon Finbuckle.MultiTenant.
Derived from Finbuckle.MultiTenant @ d69145b
(v10.0.1+19, 2025-12-13) — Apache License 2.0, © Finbuckle LLC, Andrew White, and Contributors.
Apache-2.0 requires retaining attribution notices and marking modified files. Fork point, divergence
and maintenance rules: TCIS.MultiTenancy — Provenance.
📦 Installation
dotnet add package TCIS.MultiTenancy.AspNetCore
🚀 Configuration and Registration (Program.cs)
Register Multi-Tenancy services and Resolution Strategies through the provided extension methods.
using TCIS.MultiTenancy.AspNetCore.Extensions;
using TCIS.MultiTenancy.Abstractions;
var builder = WebApplication.CreateBuilder(args);
// Register Multi-Tenancy services
builder.Services.AddTMultiTenant<TenantInfo>()
// Resolve Tenant via HTTP Header (default key is "__tenant__")
.WithHeaderStrategy()
// Or resolve by Host
.WithHostStrategy()
// Or resolve by Claims
.WithClaimStrategy("tenant_id")
// Configure to throw an error or redirect if the Tenant is not found
.ShortCircuitWhenTenantNotResolved();
var app = builder.Build();
// Use the Multi-Tenancy Middleware in the Pipeline (after Routing, before Auth)
app.UseTMultiTenant();
app.Run();
💡 Usage
The library provides flexible, out-of-the-box resolution strategies:
- HeaderStrategy:
WithHeaderStrategy(string tenantKey = "__tenant__")- Highly suitable for Web APIs and gRPC when the client can actively pass a Header identifying the Tenant.
- HostStrategy:
WithHostStrategy(string template = "__tenant__.*")- Used for subdomain scenarios such as
tenant1.domain.com.
- Used for subdomain scenarios such as
- ClaimStrategy:
WithClaimStrategy(string claimType)- Automatically resolves the Tenant through the JWT Claims of the currently logged-in User.
Note:
app.UseTMultiTenant()is mandatory in the request pipeline to resolve the Tenant. This middleware replaces standard middlewares to ensure optimal compatibility with the TCIS context system.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- FluentValidation (>= 11.11.0)
- FluentValidation.AspNetCore (>= 11.3.0)
- FluentValidation.DependencyInjectionExtensions (>= 11.11.0)
- Microsoft.Extensions.Caching.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Configuration (>= 9.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.0)
- Microsoft.Extensions.DependencyInjection (>= 9.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Http (>= 9.0.0)
- Microsoft.Extensions.Logging (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Options (>= 9.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.0)
- TCIS.AspNetCore (>= 1.0.0-rc.24)
- TCIS.MultiTenancy (>= 1.0.0-rc.24)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-rc.31 | 0 | 8/21/2026 |
| 1.0.0-rc.30 | 0 | 8/21/2026 |
| 1.0.0-rc.29 | 0 | 8/21/2026 |
| 1.0.0-rc.28 | 0 | 8/21/2026 |
| 1.0.0-rc.27 | 0 | 8/21/2026 |
| 1.0.0-rc.26 | 25 | 8/20/2026 |
| 1.0.0-rc.25 | 34 | 8/20/2026 |
| 1.0.0-rc.24 | 34 | 8/20/2026 |
| 1.0.0-rc.23 | 32 | 8/20/2026 |
| 1.0.0-rc.22 | 41 | 8/19/2026 |
| 1.0.0-rc.21 | 39 | 8/19/2026 |
| 1.0.0-rc.20 | 45 | 8/18/2026 |
| 1.0.0-rc.19 | 55 | 8/13/2026 |
| 1.0.0-rc.18 | 49 | 8/13/2026 |
| 1.0.0-rc.17 | 50 | 8/13/2026 |
| 1.0.0-rc.16 | 58 | 8/13/2026 |
| 1.0.0-rc.15 | 61 | 8/12/2026 |
| 1.0.0-rc.14 | 70 | 8/12/2026 |
| 1.0.0-rc.13 | 58 | 8/11/2026 |
| 1.0.0-rc.12 | 57 | 8/10/2026 |