Rask.Cqrs.Server
0.24.0
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
<PackageReference Include="Rask.Cqrs.Server" Version="0.24.0" />
<PackageVersion Include="Rask.Cqrs.Server" Version="0.24.0" />
<PackageReference Include="Rask.Cqrs.Server" />
paket add Rask.Cqrs.Server --version 0.24.0
#r "nuget: Rask.Cqrs.Server, 0.24.0"
#:package Rask.Cqrs.Server@0.24.0
#addin nuget:?package=Rask.Cqrs.Server&version=0.24.0
#tool nuget:?package=Rask.Cqrs.Server&version=0.24.0
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 9457problem+jsonwith 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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Rask.Cqrs (>= 0.24.0)
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.257 | 38 | 11/23/2026 |
| 0.24.1-alpha.0.256 | 40 | 11/23/2026 |
| 0.24.1-alpha.0.253 | 41 | 11/23/2026 |
| 0.24.1-alpha.0.249 | 41 | 11/23/2026 |
| 0.24.1-alpha.0.246 | 42 | 11/23/2026 |
| 0.24.1-alpha.0.243 | 48 | 11/23/2026 |
| 0.24.1-alpha.0.242 | 49 | 11/22/2026 |
| 0.24.1-alpha.0.241 | 53 | 11/21/2026 |
| 0.24.1-alpha.0.240 | 57 | 11/21/2026 |
| 0.24.1-alpha.0.239 | 55 | 11/20/2026 |
| 0.24.1-alpha.0.237 | 55 | 11/20/2026 |
| 0.24.1-alpha.0.236 | 52 | 11/20/2026 |
| 0.24.1-alpha.0.156 | 47 | 11/20/2026 |
| 0.24.1-alpha.0.155 | 55 | 11/20/2026 |
| 0.24.1-alpha.0.154 | 55 | 11/19/2026 |
| 0.24.1-alpha.0.149 | 55 | 11/18/2026 |
| 0.24.1-alpha.0.145 | 52 | 11/18/2026 |
| 0.24.1-alpha.0.141 | 55 | 11/18/2026 |
| 0.24.1-alpha.0.140 | 118 | 11/18/2026 |
| 0.24.0 | 153 | 11/16/2026 |