![]() |
VOOZH | about |
dotnet add package Franz.Common.MultiTenancy --version 2.2.7
NuGet\Install-Package Franz.Common.MultiTenancy -Version 2.2.7
<PackageReference Include="Franz.Common.MultiTenancy" Version="2.2.7" />
<PackageVersion Include="Franz.Common.MultiTenancy" Version="2.2.7" />Directory.Packages.props
<PackageReference Include="Franz.Common.MultiTenancy" />Project file
paket add Franz.Common.MultiTenancy --version 2.2.7
#r "nuget: Franz.Common.MultiTenancy, 2.2.7"
#:package Franz.Common.MultiTenancy@2.2.7
#addin nuget:?package=Franz.Common.MultiTenancy&version=2.2.7Install as a Cake Addin
#tool nuget:?package=Franz.Common.MultiTenancy&version=2.2.7Install as a Cake Tool
A lightweight library within the Franz Framework designed to enable multi-tenancy support in .NET applications. This package provides interfaces for accessing and managing tenant and domain contexts, enabling seamless integration with multi-tenant architectures.
ITenantContextAccessor interface for retrieving tenant-specific information.IDomainContextAccessor interface for handling domain-specific data.-Current Version: v2.2.7
This package does not depend on external libraries and is designed to be easily integrated into any .NET project.
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.MultiTenancy
Provide implementations for the ITenantContextAccessor and IDomainContextAccessor interfaces:
using Franz.Common.MultiTenancy;
public class TenantContextAccessor : ITenantContextAccessor
{
public string TenantId { get; set; } = "DefaultTenant";
}
public class DomainContextAccessor : IDomainContextAccessor
{
public string DomainName { get; set; } = "DefaultDomain";
}
Add the context accessors to your service collection:
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddSingleton<ITenantContextAccessor, TenantContextAccessor>();
services.AddSingleton<IDomainContextAccessor, DomainContextAccessor>();
}
}
Inject the accessors into your services to retrieve tenant and domain-specific data:
using Franz.Common.MultiTenancy;
public class MyService
{
private readonly ITenantContextAccessor _tenantContextAccessor;
private readonly IDomainContextAccessor _domainContextAccessor;
public MyService(ITenantContextAccessor tenantContextAccessor, IDomainContextAccessor domainContextAccessor)
{
_tenantContextAccessor = tenantContextAccessor;
_domainContextAccessor = domainContextAccessor;
}
public void DisplayContextInfo()
{
Console.WriteLine($"Tenant ID: {_tenantContextAccessor.TenantId}");
Console.WriteLine($"Domain Name: {_domainContextAccessor.DomainName}");
}
}
The Franz.Common.MultiTenancy package serves as a foundational utility for enabling multi-tenancy in any Franz Framework-based application. Use it alongside other libraries in the framework to build fully multi-tenant-aware systems.
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.
ITenantContextAccessor for accessing tenant-specific information.IDomainContextAccessor for retrieving domain-specific data.Bug fixes and performance improvements.
Updated to .NET 10.0
| 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 5 NuGet packages that depend on Franz.Common.MultiTenancy:
| Package | Downloads |
|---|---|
|
Franz.Common.EntityFramework
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Http.MultiTenancy
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Messaging.MultiTenancy
Shared utility library for the Franz Framework. |
|
|
Franz.Common.EntityFramework.SQLServer
Shared utility library for the Franz Framework. |
|
|
Franz.Common.EntityFramework.PostGres
Shared utility library for the Franz Framework. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.7 | 278 | 6/7/2026 |
| 2.2.6 | 284 | 6/6/2026 |
| 2.2.5 | 287 | 6/4/2026 |
| 2.2.4 | 272 | 6/3/2026 |
| 2.2.3 | 266 | 6/2/2026 |
| 2.2.2 | 266 | 6/2/2026 |
| 2.2.1 | 287 | 5/24/2026 |
| 2.1.4 | 235 | 4/27/2026 |
| 2.1.3 | 223 | 4/26/2026 |
| 2.1.2 | 231 | 4/26/2026 |
| 2.1.1 | 251 | 4/22/2026 |
| 2.0.2 | 237 | 3/30/2026 |
| 2.0.1 | 226 | 3/29/2026 |
| 1.7.8 | 235 | 3/2/2026 |
| 1.7.7 | 251 | 1/31/2026 |
| 1.7.6 | 243 | 1/22/2026 |
| 1.7.5 | 241 | 1/10/2026 |
| 1.7.4 | 240 | 12/27/2025 |
| 1.7.3 | 310 | 12/22/2025 |
| 1.7.2 | 328 | 12/21/2025 |