![]() |
VOOZH | about |
dotnet add package Franz.Common.Http.MultiTenancy --version 2.2.7
NuGet\Install-Package Franz.Common.Http.MultiTenancy -Version 2.2.7
<PackageReference Include="Franz.Common.Http.MultiTenancy" Version="2.2.7" />
<PackageVersion Include="Franz.Common.Http.MultiTenancy" Version="2.2.7" />Directory.Packages.props
<PackageReference Include="Franz.Common.Http.MultiTenancy" />Project file
paket add Franz.Common.Http.MultiTenancy --version 2.2.7
#r "nuget: Franz.Common.Http.MultiTenancy, 2.2.7"
#:package Franz.Common.Http.MultiTenancy@2.2.7
#addin nuget:?package=Franz.Common.Http.MultiTenancy&version=2.2.7Install as a Cake Addin
#tool nuget:?package=Franz.Common.Http.MultiTenancy&version=2.2.7Install as a Cake Tool
A library within the Franz Framework that extends multi-tenancy support for HTTP-based ASP.NET Core applications. This package provides tools for tenant-specific context management, dependency injection, and Swagger documentation enhancements, enabling seamless multi-tenant application development.
TenantContextAccessor and DomainContextAccessor for managing tenant-specific information across HTTP requests.AddRequiredHeaderParameter for including tenant-specific headers in Swagger documentation.ServiceCollectionExtensions for integrating multi-tenancy into your services and application pipeline.-Current Version: v2.2.7
This package relies on:
Since this package is hosted privately, configure your NuGet client:
dotnet nuget add source "https://your-private-feed-url" \
--name "AzurePrivateFeed" \
--username "YourAzureUsername" \
--password "YourAzurePassword" \
--store-password-in-clear-text
Install the package:
dotnet add package Franz.Common.Http.MultiTenancy
Use ServiceCollectionExtensions to register tenant-specific services:
using Franz.Common.Http.MultiTenancy.Extensions;
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddMultiTenancy(); // Registers multi-tenancy utilities and services
}
}
Access tenant-specific information using TenantContextAccessor or DomainContextAccessor:
using Franz.Common.Http.MultiTenancy;
public class MyService
{
private readonly TenantContextAccessor _tenantContextAccessor;
public MyService(TenantContextAccessor tenantContextAccessor)
{
_tenantContextAccessor = tenantContextAccessor;
}
public string GetTenantId()
{
return _tenantContextAccessor.Tenant?.Id;
}
}
Use AddRequiredHeaderParameter to include tenant-specific headers in Swagger UI:
using Franz.Common.Http.MultiTenancy.Documentation;
services.AddSwaggerGen(options =>
{
options.OperationFilter<AddRequiredHeaderParameter>();
});
This ensures tenant headers are explicitly documented in API specifications.
The Franz.Common.Http.MultiTenancy package integrates seamlessly with:
Ensure these dependencies are installed to fully leverage the library's capabilities.
This package is part of a private framework. Contributions are limited to the internal development team. If you have access, follow these steps:
This library is licensed under the MIT License. See the LICENSE file for more details.
Introduced tenant resolution pipeline (DefaultTenantResolutionPipeline) to orchestrate multiple strategies.
Added resolvers for different multi-tenancy strategies:
Implemented TenantResolutionMiddleware for resolving the tenant once per request and storing it in context.
Enhanced TenantContextAccessor and DomainContextAccessor to use HttpContext.Items for request-scoped tenant/domain storage.
Added DI extension methods (AddFranzMultiTenancy) for easy registration of multi-tenancy services.
Added middleware extension (UseFranzMultiTenancy) for seamless integration into the ASP.NET Core pipeline.
Improved Swagger integration by supporting tenant-specific headers in documentation via AddRequiredHeaderParameter.
Laid foundation for tenant-aware services (DbContexts, caching, feature flags) by standardizing tenant resolution across HTTP requests.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on Franz.Common.Http.MultiTenancy:
| Package | Downloads |
|---|---|
|
Franz.Common.MongoDB
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Http.Bootstrap
Shared utility library for the Franz Framework. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.7 | 136 | 6/7/2026 |
| 2.2.6 | 148 | 6/6/2026 |
| 2.2.5 | 140 | 6/4/2026 |
| 2.2.4 | 133 | 6/3/2026 |
| 2.2.3 | 126 | 6/2/2026 |
| 2.2.2 | 143 | 6/2/2026 |
| 2.2.1 | 139 | 5/24/2026 |
| 2.1.4 | 135 | 4/27/2026 |
| 2.1.3 | 133 | 4/26/2026 |
| 2.1.2 | 130 | 4/26/2026 |
| 2.1.1 | 142 | 4/22/2026 |
| 2.0.2 | 151 | 3/30/2026 |
| 2.0.1 | 134 | 3/29/2026 |
| 1.7.8 | 136 | 3/2/2026 |
| 1.7.7 | 157 | 1/31/2026 |
| 1.7.6 | 149 | 1/22/2026 |
| 1.7.5 | 153 | 1/10/2026 |
| 1.7.4 | 147 | 12/27/2025 |
| 1.7.3 | 249 | 12/22/2025 |
| 1.7.2 | 232 | 12/21/2025 |