DKNet.AspCore.Extensions
13.3.1
dotnet add package DKNet.AspCore.Extensions --version 13.3.1
NuGet\Install-Package DKNet.AspCore.Extensions -Version 13.3.1
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="DKNet.AspCore.Extensions" Version="13.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DKNet.AspCore.Extensions" Version="13.3.1" />
<PackageReference Include="DKNet.AspCore.Extensions" />
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 DKNet.AspCore.Extensions --version 13.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DKNet.AspCore.Extensions, 13.3.1"
#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 DKNet.AspCore.Extensions@13.3.1
#: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=DKNet.AspCore.Extensions&version=13.3.1
#tool nuget:?package=DKNet.AspCore.Extensions&version=13.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DKNet.AspCore.Extensions
Endpoint discovery, request binding and HTTP helpers for .NET developers building DKNet minimal APIs.
✨ Why use it?
- Map feature-owned route groups with consistent version and policy metadata.
- Populate host-controlled request members before validation.
- Dispatch commands or entity queries and return consistent result envelopes.
- Compose explicit middleware for host transport and request guards.
🚀 Quick Start
Use a .NET 10 ASP.NET Core project.
dotnet new web -f net10.0 -n PackageDemo
cd PackageDemo
dotnet add package DKNet.AspCore.Extensions
Replace Program.cs with the example, then run dotnet run.
using DKNet.AspCore.Extensions;
using DKNet.AspCore.Extensions.Endpoints;
using Microsoft.AspNetCore.Routing;
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.UseEndpointConfigs(o =>
{
o.EnableVersioning = false;
o.RequireAuthorization = false;
}, typeof(PingEndpoints).Assembly);
await app.RunAsync();
public sealed class PingEndpoints : IEndpointConfig
{
public string GroupEndpoint => "/ping";
public void Map(RouteGroupBuilder group) => group.MapGet("/", () => "pong");
}
Request GET /ping/ to see pong. This local example explicitly disables versioning and authorization. Normal defaults require AddApiVersioning() and host authentication/authorization setup.
Documentation
| Guide | Read when |
|---|---|
| Package overview | Start with architecture and the end-to-end flow. |
| Discover and map endpoint groups | Discover groups and choose versioned routes and authorization policies. |
| Populate request members from context | Overwrite bound members from claims, headers, or custom host sources. |
| Dispatch HTTP requests through SlimMessageBus | Choose command/query mappers and understand their binding and HTTP results. |
| Read and delete entities through specifications | Read, list, and hard-delete through the specification repository. |
| Filter, search and page list endpoints | Validate filters, search, ordering, page sizes, and activity windows. |
| Build a paged response envelope | Snapshot an existing page into a response envelope. |
| Convert FluentResults to HTTP results | Convert success and failure results into minimal-API responses. |
| Apply one error-response setting | Apply shared status and body callbacks to command, validation, and exception failures. |
| Configure generated CRUD routes | Exclude generated routes and attach settings by kind or route name. |
| Configure an explicit CORS policy | Install a browser policy for explicit allowed origins. |
| Configure trusted forwarding sources | Accept forwarded scheme and client IP only from configured sources. |
| Configure HSTS and HTTPS redirection | Register HSTS settings and install HTTPS redirection. |
| Bound request size and duration | Configure Kestrel size limits and a default timeout policy. |
| Limit rate and concurrent requests | Partition local request-rate and concurrency limits. |
| Validate antiforgery headers on browser mutations | Issue request-token cookies and validate headers on checked mutations. |
| Resolve the current principal for sensitive-data serialization | Supply the current HTTP principal to sensitive-data serialization. |
| Select a named job from command-line arguments | Match a positional argument to a known job name without executing it. |
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Asp.Versioning.Http (>= 10.2.3)
- DKNet.EfCore.Specifications (>= 13.3.1)
- DKNet.SlimBus.Extensions (>= 13.3.1)
- FluentResults (>= 4.0.0)
- Microsoft.AspNetCore.OpenApi (>= 10.0.12)
- SharpGrip.FluentValidation.AutoValidation.Endpoints (>= 2.0.0)
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 |
|---|---|---|
| 13.3.1 | 0 | 10/26/2026 |
| 13.3.0 | 79 | 10/22/2026 |
| 13.2.8 | 47 | 10/22/2026 |
| 13.2.7 | 142 | 10/11/2026 |
| 13.2.6 | 89 | 10/10/2026 |
| 13.2.5 | 345 | 10/2/2026 |
| 13.2.4 | 93 | 10/1/2026 |
| 13.2.3 | 107 | 10/1/2026 |
| 13.2.2 | 92 | 10/1/2026 |
| 13.2.1 | 90 | 10/1/2026 |
| 13.2.0 | 93 | 10/1/2026 |
| 13.1.3 | 161 | 9/21/2026 |
| 13.1.2 | 358 | 9/18/2026 |
| 13.1.1 | 103 | 9/18/2026 |
| 13.1.0 | 102 | 9/18/2026 |
| 13.0.2 | 98 | 9/18/2026 |
| 13.0.1 | 109 | 9/18/2026 |
| 13.0.0 | 114 | 9/18/2026 |
| 12.0.0 | 110 | 9/17/2026 |
| 11.0.0 | 186 | 9/17/2026 |
Loading failed