CanopyX.AspNetCore 0.2.1

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

CanopyX.AspNetCore

Minimal-API endpoints for the CanopyX remote grid protocol, built on CanopyX.Data.

var map = new CanopyColumnMap<Host>(view)
    .Key(x => x.Id)
    .Column("name", x => x.Name)
    .Column("owner", x => x.Owner.Name);

app.MapCanopyRemote("/api/hosts", http => http.RequestServices.GetRequiredService<FleetDb>().Hosts, map, options => {
    options.AuthorizationPolicy = "Inventory.Read";
});

The group serves POST query, GET query, POST facet, POST summary, POST export/{format} and GET view. With options.Writer it also serves POST commit, which requires options.WriteAuthorizationPolicy on top of the read policy. With a CanopyRecordMap<T> (or options.Records) it serves POST record, the record panel's details on demand, looked up through the same query callback. CanopyRemoteScript.Element(map.Schema, "/api/hosts") writes the browser script that connects the grid to them. Under a nonce-based Content Security Policy, use CanopyRemoteScript.ElementWithNonce(map.Schema, "/api/hosts", nonce) with the same response nonce as the page. See docs/remote-dotnet.md in the repository.

Product 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 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

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.2.1 53 10/19/2026

First release: MapCanopyRemote endpoint mapping with cancellation, typed client errors and the browser remote source script.