Bsft.Modules 2.2.0

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

Bsft.Modules

The module system: a catalog of IModule implementations discovered from types, a directory or a JSON manifest, loaded and started in dependency order, with a discovery endpoint that reports what an application is actually running.

Install

dotnet add package Bsft.Modules

No further Bsft packages. It takes a framework reference on Microsoft.AspNetCore.App, because UseBsftModules maps the GET /api/modules endpoint. That endpoint requires an authenticated caller, so the host has to have authentication and authorization in the pipeline before it.

Register

services.AddBsftModules(configuration, modules =>
{
    modules.Add<InventoryModule>();
    modules.FromConfigurationFile("modules.json");
    modules.FromDirectory("./plugins");
});

app.UseBsftModules();

AddBsftModules builds the catalog, resolves the dependency order, loads the assemblies and calls IModule.ConfigureServices on each module — so it runs while the container is still being built and a module's own registrations land in it. UseBsftModules then calls IModule.OnStartAsync in the same order and maps the discovery endpoint. The IConfiguration it takes is handed to each module rather than bound into settings of this package.

Configure

None. The package binds no configuration section and exposes no options type. ModulesConfiguration is a builder-configuration value that lives for the duration of the AddBsftModules call, listing where modules come from; it is not an options type in the sense of the conventions and carries no SectionName.

Option Default Effect
— — —

Validation: the loader rejects a missing dependency, a dependency cycle and an unloadable assembly with a ModuleDependencyException naming the module. The failure happens during AddBsftModules, so a misconfigured module set never reaches a running host.

Extend

IModule is the extension point: implement it to contribute registrations in ConfigureServices and startup work in OnStartAsync, and declare DependsOn so the order is derived rather than assumed. IModuleCatalog (what is registered) and IModuleHost (what is loaded and its status) are resolvable for a host that wants to report on the module set itself. The JSON manifest models are internal: the file format is the contract, not the classes that read it.

Documentation

Topic page: docs/modules.md. Conventions: docs/package-conventions.md.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.0 171 10/23/2026
2.1.0 110 9/28/2026