Kododo.Reiho.AspNetCore
1.0.0-alpha.4
See the version list below for details.
dotnet add package Kododo.Reiho.AspNetCore --version 1.0.0-alpha.4
NuGet\Install-Package Kododo.Reiho.AspNetCore -Version 1.0.0-alpha.4
<PackageReference Include="Kododo.Reiho.AspNetCore" Version="1.0.0-alpha.4" />
<PackageVersion Include="Kododo.Reiho.AspNetCore" Version="1.0.0-alpha.4" />
<PackageReference Include="Kododo.Reiho.AspNetCore" />
paket add Kododo.Reiho.AspNetCore --version 1.0.0-alpha.4
#r "nuget: Kododo.Reiho.AspNetCore, 1.0.0-alpha.4"
#:package Kododo.Reiho.AspNetCore@1.0.0-alpha.4
#addin nuget:?package=Kododo.Reiho.AspNetCore&version=1.0.0-alpha.4&prerelease
#tool nuget:?package=Kododo.Reiho.AspNetCore&version=1.0.0-alpha.4&prerelease
Reiho.AspNetCore
Lightweight request/handler abstraction for ASP.NET Core Minimal APIs, plus a helper for serving embedded SPAs.
Install
dotnet add package Kododo.Reiho.AspNetCore
Request / Handler
// Define
public sealed record GetUser(int Id) : IRequest<UserDto>;
// Handle
public sealed class GetUserHandler : IRequestHandler<GetUser, UserDto>
{
public Task<UserDto> HandleAsync(GetUser request, CancellationToken ct)
=> Task.FromResult(new UserDto { Id = request.Id });
}
// Register & map
builder.Services.AddRequestHandlers();
app.MapGroup("/api").MapRequests(typeof(Program).Assembly);
// → POST /api/GetUser
Requests without a return value use IRequest / IRequestHandler<T> and return 204 No Content.
Request body behaviour
| Situation | Result |
|---|---|
| Body present | Deserialized from JSON |
| No body, parameterless constructor exists | Empty instance created |
| No body, no parameterless constructor | 400 Bad Request |
Embedded SPA
Serve a bundled SPA from embedded resources with automatic base path injection:
app.MapGroup("/ui")
.RequireAuthorization()
.MapEmbeddedSpa(Assembly.GetExecutingAssembly(), "Frontend/dist");
Add to your .csproj:
<EmbeddedResource Include="Frontend\dist\**\*" />
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
Place __BASE_PATH__ in your index.html — replaced at runtime with the actual mount path. rootPath defaults to "SPA/dist".
When running behind a reverse proxy that strips a path prefix (e.g. Caddy's handle_path), set ASPNETCORE_PATHBASE to override the auto-calculated base path:
ASPNETCORE_PATHBASE=/configway/demo/ui
The value must be the full public prefix as seen by the browser — the proxy's stripped prefix plus the MapGroup path.
Links
| Product | Versions 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 is compatible. 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. |
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Kododo.Reiho.AspNetCore:
| Package | Downloads |
|---|---|
|
Kododo.ConfigWay.UI
Embedded web UI for ConfigWay. Adds a React-based editor served directly from the host application, in Way.Shell — no separate deployment required. |
|
|
Kododo.Way.Shell
Shared UI shell for Kododo Way libraries (ConfigWay, CultureWay, RunWay, LogWay): one layout, theme, language and React for every Way in an app, and an optional panel with all of them. |
|
|
Kododo.CultureWay.UI
Embedded web UI for CultureWay. Adds a React-based localization editor served directly from the host application, so no separate deployment is needed. |
|
|
Kododo.RunWay.Dashboard
Embedded web dashboard for RunWay. Inspect job statuses, audit timelines, and runner health directly from your ASP.NET Core application. |
|
|
Kododo.Reiho.AspNetCore.Mcp
Offers Reiho requests as tools to AI agents over the Model Context Protocol. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.1.1 | 489 | 10/16/2026 |
| 2.1.0 | 120 | 10/16/2026 |
| 2.0.0 | 148 | 10/14/2026 |
| 1.0.1 | 119 | 10/12/2026 |
| 1.0.0 | 521 | 5/6/2026 |
| 1.0.0-alpha.4 | 86 | 4/30/2026 |
| 1.0.0-alpha.3 | 83 | 4/30/2026 |
| 1.0.0-alpha.1 | 95 | 4/29/2026 |
| 0.0.10 | 157 | 4/17/2026 |
| 0.0.9 | 126 | 4/16/2026 |
| 0.0.8 | 133 | 4/16/2026 |
| 0.0.7 | 152 | 4/11/2026 |
| 0.0.4 | 135 | 4/10/2026 |
| 0.0.3 | 131 | 3/17/2026 |
| 0.0.2 | 133 | 3/17/2026 |
| 0.0.1 | 137 | 3/12/2026 |