Rask.Cqrs.Server 0.24.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Rask.Cqrs.Server --version 0.24.0
                    
NuGet\Install-Package Rask.Cqrs.Server -Version 0.24.0
                    
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="Rask.Cqrs.Server" Version="0.24.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rask.Cqrs.Server" Version="0.24.0" />
                    
Directory.Packages.props
<PackageReference Include="Rask.Cqrs.Server" />
                    
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 Rask.Cqrs.Server --version 0.24.0
                    
#r "nuget: Rask.Cqrs.Server, 0.24.0"
                    
#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 Rask.Cqrs.Server@0.24.0
                    
#: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=Rask.Cqrs.Server&version=0.24.0
                    
Install as a Cake Addin
#tool nuget:?package=Rask.Cqrs.Server&version=0.24.0
                    
Install as a Cake Tool

Rask.Cqrs.Server

The server half of Rask.Cqrs remote dispatch, for Rask, a full-stack .NET web framework for teams of any size. It answers the messages a browser app sends — a Rask WebAssembly client, or any other caller of its two endpoints — and dispatches each to its ordinary handler — no controllers, no DTO plumbing, no per-message routes.

  • Two endpoints, not one per message. One GET and one POST resolve a message by name against the source-generated allow-list. A query is a GET and can be cached; a command is a POST, so it is 405 on GET and cannot be triggered by a URL, a prefetch or a link scanner. A subscription is served as server-sent events, admitted by the event's watch policy.
  • Fails closed. Authenticated by default — [AllowAnonymous] on the handler is the only way past, and [Authorize] policies and roles are enforced. An anonymous caller cannot enumerate your messages, both verbs require a header no cross-site markup can set, and handler exceptions become RFC 9457 problem+json with no exception text unless you opt in.
  • Files both ways. Queries answer JSON or a streamed file; commands accept JSON or multipart uploads.
  • [LocalOnly] keeps a message — or a whole interface family — off the wire.

Install

dotnet add package Rask.Cqrs.Server

Use

// Program.cs
builder.Services.AddRaskCqrsServer();   // calls AddRaskCqrs() for you

Then map its endpoints once the app is built, before any index.html fallback, so an API call is never answered with a page. The browser half is Rask.Cqrs.Client.

Guide: CQRS — remote dispatch

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Rask.Cqrs.Server:

Package Downloads
Rask.Server

The ASP.NET host for Rask, a full-stack .NET web framework, with every battery: database (SQLite or SQL Server, and PostgreSQL with the Rask.Postgres package, picked by Rask:Database:Provider), mediator and query cache, accounts, background jobs, transactional email, cache, file storage, outbox, operator dashboard, durable logs, Web Push, SQLite snapshots and continuous backup. Renders Rask components with live updates over a WebSocket. RaskApp.Create(args).Run<App>() is the whole Program.cs, and RaskApp.Create(args).Serve() the whole server of a WebAssembly client; app.Configure(c => c.Jobs.Off()) is how an app does without one. Depends on Rask, the shared core.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.24.1-alpha.0.987 33 11/28/2026
0.24.1-alpha.0.979 38 11/28/2026
0.24.1-alpha.0.972 42 11/28/2026
0.24.1-alpha.0.970 47 11/28/2026
0.24.1-alpha.0.907 48 11/27/2026
0.24.1-alpha.0.902 44 11/27/2026
0.24.1-alpha.0.873 47 11/27/2026
0.24.1-alpha.0.822 52 11/27/2026
0.24.1-alpha.0.782 45 11/27/2026
0.24.1-alpha.0.775 49 11/27/2026
0.24.1-alpha.0.774 49 11/27/2026
0.24.1-alpha.0.770 46 11/27/2026
0.24.1-alpha.0.769 51 11/26/2026
0.24.1-alpha.0.767 49 11/26/2026
0.24.1-alpha.0.766 52 11/26/2026
0.24.1-alpha.0.760 58 11/26/2026
0.24.1-alpha.0.759 53 11/26/2026
0.24.1-alpha.0.757 55 11/26/2026
0.24.1-alpha.0.754 58 11/26/2026
0.24.0 161 11/16/2026
Loading failed