Cohesive.Adapters.AspNet
0.1.0-alpha.4
This is a prerelease version of Cohesive.Adapters.AspNet.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Cohesive.Adapters.AspNet --version 0.1.0-alpha.4
NuGet\Install-Package Cohesive.Adapters.AspNet -Version 0.1.0-alpha.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="Cohesive.Adapters.AspNet" Version="0.1.0-alpha.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cohesive.Adapters.AspNet" Version="0.1.0-alpha.4" />
<PackageReference Include="Cohesive.Adapters.AspNet" />
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 Cohesive.Adapters.AspNet --version 0.1.0-alpha.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Cohesive.Adapters.AspNet, 0.1.0-alpha.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 Cohesive.Adapters.AspNet@0.1.0-alpha.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=Cohesive.Adapters.AspNet&version=0.1.0-alpha.4&prerelease
#tool nuget:?package=Cohesive.Adapters.AspNet&version=0.1.0-alpha.4&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Cohesive.Adapters.AspNet
ASP.NET Core endpoint and request-binding adapters for Cohesive APIs, entities, relations, processes, and identity context.
Install
dotnet add package Cohesive.Adapters.AspNet
Use When
- You want to expose Cohesive API declarations through ASP.NET Core endpoints.
- You need route builders for entity operations, relation queries, process execution, or process status.
- You want ASP.NET request identity and scope policy enforcement to flow into Cohesive operation context.
Example
using Cohesive.Adapters.AspNet.Entities;
using Cohesive.Api;
using Microsoft.AspNetCore.Http;
var api = Api.Define("Notes");
var getNote = api.Entity<NoteResource>()
.Query("Get")
.Route("GET", "/notes/{id}")
.RouteParameter<string>("id")
.Returns<NoteResource>()
.Build();
app.MapEntityApiDefinition(api.Build(), new EntityApiEndpointOptions
{
Entity = NoteEntity.Instance.Definition
}
.Bind(getNote.Get(static (_, snapshot) =>
Results.Ok(ToResource(snapshot)))));
Related Packages
Cohesive.Apifor semantic API declarations.Cohesive.Identityfor identity context and scope resolution.Cohesive.Processes,Cohesive.Relations, andCohesive.Storagefor the runtime surfaces exposed by endpoints.
| 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
- Cohesive (>= 0.1.0-alpha.4)
- Cohesive.Api (>= 0.1.0-alpha.4)
- Cohesive.Host (>= 0.1.0-alpha.4)
- Cohesive.Identity (>= 0.1.0-alpha.4)
- Cohesive.Storage (>= 0.1.0-alpha.4)
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 |
|---|---|---|
| 0.1.0-alpha.132 | 38 | 10/7/2026 |
| 0.1.0-alpha.131 | 42 | 10/7/2026 |
| 0.1.0-alpha.130 | 36 | 10/7/2026 |
| 0.1.0-alpha.129 | 44 | 10/6/2026 |
| 0.1.0-alpha.128 | 63 | 10/5/2026 |
| 0.1.0-alpha.127 | 59 | 10/4/2026 |
| 0.1.0-alpha.126 | 63 | 10/4/2026 |
| 0.1.0-alpha.125 | 63 | 10/4/2026 |
| 0.1.0-alpha.124 | 56 | 10/4/2026 |
| 0.1.0-alpha.123 | 62 | 10/4/2026 |
| 0.1.0-alpha.122 | 67 | 10/3/2026 |
| 0.1.0-alpha.121 | 64 | 10/2/2026 |
| 0.1.0-alpha.120 | 81 | 9/29/2026 |
| 0.1.0-alpha.119 | 59 | 9/29/2026 |
| 0.1.0-alpha.118 | 74 | 9/29/2026 |
| 0.1.0-alpha.117 | 78 | 9/27/2026 |
| 0.1.0-alpha.116 | 64 | 9/26/2026 |
| 0.1.0-alpha.115 | 90 | 9/26/2026 |
| 0.1.0-alpha.114 | 76 | 9/24/2026 |
| 0.1.0-alpha.4 | 68 | 7/13/2026 |
Loading failed