Sparkdo.PermissionManagement.Domain 1.0.2

dotnet add package Sparkdo.PermissionManagement.Domain --version 1.0.2
                    
NuGet\Install-Package Sparkdo.PermissionManagement.Domain -Version 1.0.2
                    
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="Sparkdo.PermissionManagement.Domain" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sparkdo.PermissionManagement.Domain" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Sparkdo.PermissionManagement.Domain" />
                    
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 Sparkdo.PermissionManagement.Domain --version 1.0.2
                    
#r "nuget: Sparkdo.PermissionManagement.Domain, 1.0.2"
                    
#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 Sparkdo.PermissionManagement.Domain@1.0.2
                    
#: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=Sparkdo.PermissionManagement.Domain&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Sparkdo.PermissionManagement.Domain&version=1.0.2
                    
Install as a Cake Tool

Sparkdo.PermissionManagement.Domain

Sparkdo 权限管理领域库,提供权限管理功能的核心领域模型、仓储接口和业务逻辑实现。

功能特性

  • 权限管理核心领域模型
  • 权限管理仓储接口定义
  • 权限管理业务逻辑实现
  • 权限查找器和管理器实现
  • 权限数据种子和序列化
  • 动态权限定义存储
  • 权限缓存和授权提供者
  • 与 Sparkdo 框架无缝集成

核心组件

领域模型

  • PermissionDefinitionRecord: 权限定义记录实体
  • PermissionGroupDefinitionRecord: 权限组定义记录实体
  • PermissionGrant: 权限授予实体

仓储接口

  • IPermissionGrantRepository: 权限授予仓储接口
  • IPermissionDefinitionRecordRepository: 权限定义记录仓储接口
  • IPermissionGroupDefinitionRecordRepository: 权限组定义记录仓储接口

核心服务接口

  • IPermissionManager: 权限管理器接口
  • IPermissionFinder: 权限查找器接口
  • IPermissionDataSeeder: 权限数据种子接口
  • IPermissionDefinitionSerializer: 权限定义序列化器接口
  • IPermissionManagementProvider: 权限管理提供者接口

核心服务实现

  • PermissionManager: 权限管理器实现
  • PermissionFinder: 权限查找器实现
  • PermissionDataSeeder: 权限数据种子实现
  • PermissionDefinitionSerializer: 权限定义序列化器实现
  • PermissionManagementProviderBase: 权限管理提供者基类

缓存和存储

  • IDynamicPermissionDefinitionStoreInMemoryCache: 动态权限定义内存缓存接口
  • DynamicPermissionDefinitionStoreInMemoryCache: 动态权限定义内存缓存实现
  • DynamicPermissionDefinitionStore: 动态权限定义存储实现
  • PermissionStore: 权限存储实现

配置和选项

  • PermissionManagementOptions: 权限管理配置选项
  • SparkdoPermissionManagementDomainModule: 权限管理领域模块

安装

<PackageReference Include="Sparkdo.PermissionManagement.Domain" Version="x.x.x" />

使用场景

该库实现了权限管理模块的核心领域逻辑,主要用于:

  1. 在领域层实现权限管理的核心业务逻辑
  2. 提供权限检查、授予和管理功能
  3. 实现权限数据的持久化和缓存
  4. 支持动态权限定义和管理

扩展性

该库提供了权限管理的核心领域实现,开发者可以通过以下方式扩展:

  1. 实现 IPermissionManagementProvider 接口创建自定义权限管理提供者
  2. 实现 IPermissionManager 接口创建自定义权限管理器
  3. 扩展现有的领域模型以满足特定业务需求
  4. 创建自定义的权限数据种子实现

所有公共接口和类都添加了详细的 XML 文档注释,便于开发者理解和使用。

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 (2)

Showing the top 2 NuGet packages that depend on Sparkdo.PermissionManagement.Domain:

Package Downloads
Sparkdo.PermissionManagement.EntityFrameworkCore

Sparkdo 权限管理EntityFrameworkCore实现,提供基于EF Core的权限管理数据访问实现

Sparkdo.PermissionManagement.Application

Sparkdo 权限管理应用层,提供权限管理的应用服务实现和业务逻辑编排

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 113 4/27/2026
1.0.2-preview.5 59 4/15/2026
1.0.2-preview.4 76 2/8/2026
1.0.2-preview.3 72 2/1/2026
1.0.2-preview.2 69 1/31/2026
1.0.2-preview.1 181 12/4/2025
1.0.1 260 11/27/2025
1.0.0 271 11/25/2025