KamiSama.Modules 10.0.11.4

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

KamiSama.Modules

Back to package index

Version: 10.0.0

Description

Composable ASP.NET Core modules that register services before application build and apply middleware or endpoints afterward. Use this package to assemble startup behavior in explicit module order through ExtendedWebApplicationBuilder.

How to use

dotnet add package KamiSama.Modules --version 10.0.0

Wrap a standard builder, add modules in the required middleware and endpoint order, and finish with BuildAsync. All module service phases run first in insertion order, the application is built once, and then all application phases run in the same order:

using KamiSama.Modules;

var webBuilder = WebApplication.CreateBuilder(args);
webBuilder.Services.AddAntiforgery(); // Required before AddAntiForgery.

var builder = webBuilder.Extend()
    .AddForwardedHeaders()
    .AddHttpsRedirection()
    .AddStaticFiles()
    .AddRouting(options => options.LowercaseUrls = true)
    .AddAuthorization()
    .AddAntiForgery()
    .AddControllers()
    .AddSwagger();

var app = await builder.BuildAsync(CancellationToken.None);
await app.RunAsync();

Module order is middleware and endpoint order during the post-build phase. A failure stops later modules, and a cancellation token is only passed to modules; most built-in modules ignore it. Build blocks on BuildAsync(CancellationToken.None).Result. AntiForgeryModule only calls UseAntiforgery, so register antiforgery services separately. Do not add ResponseCachingModule in a runnable build: its application phase always throws NotImplementedException, causing both build methods to fail after the underlying application has already been built.

Namespaces

Types

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

Showing the top 5 NuGet packages that depend on KamiSama.Modules:

Package Downloads
Polareum.Api

Package Description

KamiSama.Modules.Identity.Core

ASP.NET Core Identity implementation for KamiSama login, token refresh, logout, user, role, password, two-factor, and session feature contracts, with revocable JWT sessions, EF Core persistence, mappings, and modular startup registration. Install it with exactly one Identity database provider and review the documented security and runtime limitations before exposing its features.

KamiSama.Modules.Locations.Core

ASP.NET Core Locations implementation with EF Core province and city persistence, scoped feature services, modular registration, and startup database initialization.

KamiSama.Modules.Ticketing.Core

ASP.NET Core Ticketing implementation with EF Core entities, validated ticket workflows, repositories, scoped features, modular registration, and startup database initialization.

KamiSama.ExternalServices.Email.Core

Provider-selecting email registration for ASP.NET Core applications, including default-provider options and a built-in mock provider. Use it to route ISendEmail calls to keyed transport implementations.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.11.4 0 8/18/2026
10.0.11.3 0 8/18/2026
10.0.11.2 0 8/18/2026
10.0.11.1 90 8/15/2026