Senparc.Ncf.AreaBase
0.23.0-preview4
Prefix Reserved
dotnet add package Senparc.Ncf.AreaBase --version 0.23.0-preview4
NuGet\Install-Package Senparc.Ncf.AreaBase -Version 0.23.0-preview4
<PackageReference Include="Senparc.Ncf.AreaBase" Version="0.23.0-preview4" />
<PackageVersion Include="Senparc.Ncf.AreaBase" Version="0.23.0-preview4" />
<PackageReference Include="Senparc.Ncf.AreaBase" />
paket add Senparc.Ncf.AreaBase --version 0.23.0-preview4
#r "nuget: Senparc.Ncf.AreaBase, 0.23.0-preview4"
#:package Senparc.Ncf.AreaBase@0.23.0-preview4
#addin nuget:?package=Senparc.Ncf.AreaBase&version=0.23.0-preview4&prerelease
#tool nuget:?package=Senparc.Ncf.AreaBase&version=0.23.0-preview4&prerelease
Senparc.Ncf.AreaBase
Senparc.Ncf.AreaBase contains the ASP.NET Core MVC and Razor Page foundations used by NCF administration areas and XNCF modules.
Features
- Base page models for regular and administrator-facing module pages.
- Administrator authorization policies and API/page authorization attributes.
- Authentication result filters, resource markers, and automatic anti-forgery conventions.
- Shared hooks for building an NCF Area without duplicating security and page plumbing.
Installation
<PackageReference Include="Senparc.Ncf.AreaBase" Version="0.26.0-preview3" />
Key API
AdminPageModelBaseandAdminXncfModulePageModelBaseprovide reusable page-model behavior.NcfAdminAuthorizationExtensions.AddNcfAdminAuthorizationPolicies(...)registers the standard administrator policies.AdminAuthorizeAttribute,ApiAuthorizeAttribute,AuthenticationAsyncPageFilterAttribute, andAuthenticationResultFilterAttributeapply the matching authorization and authentication behavior.AutoValidateAntiForgeryTokenModelConventionenables the default anti-forgery convention for eligible page handlers.
The package is an ASP.NET Core integration layer. Register it inside the host application's MVC/Razor pipeline and keep the host's authentication scheme and authorization policy configuration consistent with NCF.
| Product | Versions 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. |
-
net10.0
- Senparc.Ncf.Log (>= 0.20.1-preview1)
- Senparc.Ncf.Mvc.UI (>= 0.22.0-preview4)
- Senparc.Ncf.Service (>= 0.23.4-preview4)
- Senparc.Ncf.SMS (>= 0.20.4-preview4)
- Senparc.Ncf.Utility (>= 0.21.1-preview3)
- Senparc.Ncf.XncfBase (>= 0.23.5-preview4)
NuGet packages (25)
Showing the top 5 NuGet packages that depend on Senparc.Ncf.AreaBase:
| Package | Downloads |
|---|---|
|
ML.Xncf.Docs
这是一个开发者文档项目,用于阐述NCF的架构,便于开发者快速上手并掌握NCF的使用规范及开发方法 |
|
|
Senparc.Xncf.DatabaseToolkit
Senparc.Xncf.DatabaseToolkit 修改命名空间 |
|
|
Senparc.Xncf.PromptRange
你的提示词(Prompt)训练场 |
|
|
Senparc.Xncf.AIKernel
AI 核心模块,基于 Senparc.AI 为所有 AI 项目提供基础能力 |
|
|
Senparc.Xncf.SystemCore
系统核心模块(运行系统必须) |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.23.0-preview4 | 27 | 7/31/2026 |
| 0.22.0-preview3 | 108 | 7/28/2026 |
| 0.21.3-preview2 | 160 | 7/26/2026 |
| 0.21.2-preview1 | 181 | 7/3/2026 |
| 0.21.1-preview1 | 276 | 6/17/2026 |
| 0.20.15.1-preview | 216 | 5/9/2026 |
| 0.20.14-preview.1 | 150 | 2/13/2026 |
| 0.20.13.4-preview | 186 | 12/28/2025 |
| 0.20.13.2-preview | 147 | 12/28/2025 |
| 0.20.13-preview.1 | 229 | 11/1/2025 |
| 0.20.11.6-preview1 | 310 | 8/20/2025 |
| 0.20.11.4-preview1 | 251 | 8/18/2025 |
| 0.20.11.3-preview1 | 272 | 7/14/2025 |
| 0.20.11.2-preview1 | 316 | 7/2/2025 |
| 0.20.11.1-preview1 | 273 | 7/2/2025 |
| 0.20.11-preview1 | 319 | 6/24/2025 |
| 0.20.10.1-preview1 | 244 | 6/6/2025 |
| 0.20.10-preview1 | 344 | 5/18/2025 |
| 0.20.9-preview1 | 273 | 4/29/2025 |
| 0.20.2-preview | 160 | 6/16/2026 |
v0.1.0 创世,从 NCF 模板项目提炼移植
[2024-09-10] v0.18.4-preview1 升级缓存基础库
[2024-10-16] v0.18.6-preview1 添加 Service 对 PagedList 对象快速 Mapping 到 DTO 对象的方法
[2024-11-15] v0.19.0-preview1 使用新版本 AutoGen,升级 AgentsManager;解决 AgentsManager 中状态获取的异常
[2024-11-21] v0.20.2-preview1 更新 CO2NET 及缓存基础库
[2024-11-28] v0.20.3-preview1 update CO2NET, use new SenparcSetting with UseLowerCaseApiName property
[2025-01-25] v0.20.7-preview1 Update Agents functions, support for function calling
[2025-04-29] v0.20.9-preview1 Update CO2NET and AIKernel
[2025-05-18] v0.20.10-preview1 Update Installation
[2025-06-20] v0.20.11-preview1 Add MCP functions in XncfRegisterBase class
[2025-11-01] update basic libraries, including Senparc.AI
[2026-07-02] v0.21.2-preview1 升级 Senparc.AI.AgentKernel 并完成兼容性适配,升级并适配 net10.0 框架
1、升级 Senparc.AI.AgentKernel 并完成兼容性适配
2、升级并适配 net10.0 框架
[2026-07-17] v0.21.3-preview2 同步上游项目版本并适配统一本地化能力
1、Dependency update from Senparc.Ncf.Mvc.UI to 0.21.2-preview2
2、Dependency update from Senparc.Ncf.SMS to 0.20.2-preview2
3、Dependency update from Senparc.Ncf.Service to 0.23.2-preview2
4、Dependency update from Senparc.Ncf.Utility to 0.21.0-preview2
5、Dependency update from Senparc.Ncf.XncfBase to 0.23.3-preview2
[2026-07-29] v0.22.0-preview3 统一 AdminOnly 授权策略命名并提供宿主注册扩展
1、在 Core 统一 AdminOnly、AdminMember 策略名称,避免跨模块硬编码
2、提供 NCF Admin 授权策略注册扩展并保留宿主自定义策略兼容
[2026-07-31] v0.23.0-preview4 扩展后台授权错误的多语言输出
1、将 Ajax 无权限与 Handler 缺失提示接入 NcfCoreResource
2、保留原有回退文案与 HTTP 状态行为