Skip to main content
Published
Aug 12, 2026
2mo ago
Total Downloads
107.9K
107,926

Install

dotnet add package Senparc.Ncf.XncfBase --version 0.25.0-preview7
ProductVersions
.NET
net10.0

README

Senparc.Ncf.XncfBase

Senparc.Ncf.XncfBase is the module runtime foundation for NeuCharFramework. XNCF modules use it to describe themselves, register services, expose functions/pages, manage database contexts, and participate in startup and installation.

Features

  • IXncfRegister, XncfRegisterBase, registration attributes, and module availability checks.
  • Automatic module discovery, startup, installation, update, and database configuration mapping.
  • Function-render requests, parameter UI metadata, selection lists, localized descriptions, and MCP hooks.
  • XNCF thread builders, middleware contracts, Razor runtime compilation contracts, and version helpers.

Installation

<PackageReference Include="Senparc.Ncf.XncfBase" Version="0.26.0-preview3" />

Key API

  • Register.StartNcfEngine(...) starts the NCF module engine and scans configured assemblies.
  • Register.UseXncfModules(...) activates discovered modules in an ASP.NET Core application.
  • XncfRegisterManager.IsRegistered(...) and CheckXncfAvailable(...) inspect module state.
  • FunctionRenderCollection.Add(...), GetByRegisterType(...), and GetByModuleUid(...) manage function metadata.
  • FunctionRequestParameterNormalizer.NormalizeJson(...) normalizes function request JSON.
  • XncfDatabaseDbContext.Migrate() and ResetMigrate() expose module database lifecycle operations.

An XNCF module should provide a stable UID, register type, display metadata, and explicit dependencies. Treat automatic assembly scanning as a deployment boundary and restrict the scanned paths in production.

Changes from Previous Version

No structural changes between v0.24.1-preview6 and v0.25.0-preview7.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.