Ledon.MultiTenancy.Management 0.0.1

dotnet add package Ledon.MultiTenancy.Management --version 0.0.1
                    
NuGet\Install-Package Ledon.MultiTenancy.Management -Version 0.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ledon.MultiTenancy.Management" Version="0.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ledon.MultiTenancy.Management" Version="0.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Ledon.MultiTenancy.Management" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ledon.MultiTenancy.Management --version 0.0.1
                    
#r "nuget: Ledon.MultiTenancy.Management, 0.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ledon.MultiTenancy.Management@0.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ledon.MultiTenancy.Management&version=0.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Ledon.MultiTenancy.Management&version=0.0.1
                    
Install as a Cake Tool

Ledon.MultiTenancy.Management

租户目录管理:租户 CRUD + 开通/回收钩子,配合 Ledon.MultiTenancy 的解析与过滤使用。

builder.Services.AddLedonTenantManagement(o => o.RequireAuthorization = true);

builder.Services.AddSingleton<ITenantProvisioner, MyTenantProvisioner>();

端点:

  • GET /tenants

  • GET /tenants/{id}

  • POST /tenants { id, name?, connectionString? }

  • PUT /tenants/{id} { name?, connectionString?, active }

  • DELETE /tenants/{id}

  • 默认内存 ITenantStore,可替换为数据库实现;

  • ITenantProvisioner 在创建/更新时调用 ProvisionAsync,删除时调用 DeprovisionAsync;创建失败会回滚目录项;

  • ConnectionString 属敏感信息,建议结合 Ledon.Settings/列加密存储;

  • 生产环境请开启 RequireAuthorization。

完整文档:https://github.com/wosledon/ledon-framework

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Ledon.MultiTenancy.Management:

Package Downloads
Ledon.Data.MultiTenancy

.NET 10 模块化 Web 开发框架:解耦优先,自动发现与自动注入,能力按需引入。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.1 48 10/28/2026