KrapkaNet.Handling.Requests.Abstractions
0.0.40-PR006-15
dotnet add package KrapkaNet.Handling.Requests.Abstractions --version 0.0.40-PR006-15
NuGet\Install-Package KrapkaNet.Handling.Requests.Abstractions -Version 0.0.40-PR006-15
<PackageReference Include="KrapkaNet.Handling.Requests.Abstractions" Version="0.0.40-PR006-15" />
<PackageVersion Include="KrapkaNet.Handling.Requests.Abstractions" Version="0.0.40-PR006-15" />
<PackageReference Include="KrapkaNet.Handling.Requests.Abstractions" />
paket add KrapkaNet.Handling.Requests.Abstractions --version 0.0.40-PR006-15
#r "nuget: KrapkaNet.Handling.Requests.Abstractions, 0.0.40-PR006-15"
#:package KrapkaNet.Handling.Requests.Abstractions@0.0.40-PR006-15
#addin nuget:?package=KrapkaNet.Handling.Requests.Abstractions&version=0.0.40-PR006-15&prerelease
#tool nuget:?package=KrapkaNet.Handling.Requests.Abstractions&version=0.0.40-PR006-15&prerelease
KrapkaNet.Handling.Requests.Abstractions
Declare the HTTP method on the request with IGetRequest or IPostRequest from KrapkaNet.Handling.Requests.Abstractions.Requests. For either method, also implement IByIdRequest when the URL identifies a resource. Its Guid Id carries the route parameter into the handler.
Implement IRequestHandler<TRequest, TResult> on a class and annotate it with [RequestAlias("…")]. Its instance method Task<TResult> Handle(IHandlerContext<TRequest> context, CancellationToken cancellationToken) receives the bound request in context.Input and the current request ID in context.RequestId. Declare dependencies in the constructor.
Register the application's per-request ID source as a scoped IHandlerContext from KrapkaNet.Handling.Abstractions. To test a handler directly, construct it with its dependencies and call Handle(new HandlerContext<TRequest>(requestId, input), cancellationToken).
The contracts target .NET 8. Use KrapkaNet.Handling.Requests.AspNetCore to discover and register handlers in an ASP.NET Core application.
| 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 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 was computed. 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. |
-
net8.0
- KrapkaNet.Handling.Abstractions (>= 0.0.40-PR006-15)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on KrapkaNet.Handling.Requests.Abstractions:
| Package | Downloads |
|---|---|
|
KrapkaNet.Handling.Requests.AspNetCore
Discover GET and POST request handlers and map them to ASP.NET Core minimal API endpoints. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.40-PR006-15 | 64 | 12/4/2026 |
| 0.0.40-PR006-11 | 55 | 12/4/2026 |