Rask.Cqrs.Client
0.24.0
See the version list below for details.
dotnet add package Rask.Cqrs.Client --version 0.24.0
NuGet\Install-Package Rask.Cqrs.Client -Version 0.24.0
<PackageReference Include="Rask.Cqrs.Client" Version="0.24.0" />
<PackageVersion Include="Rask.Cqrs.Client" Version="0.24.0" />
<PackageReference Include="Rask.Cqrs.Client" />
paket add Rask.Cqrs.Client --version 0.24.0
#r "nuget: Rask.Cqrs.Client, 0.24.0"
#:package Rask.Cqrs.Client@0.24.0
#addin nuget:?package=Rask.Cqrs.Client&version=0.24.0
#tool nuget:?package=Rask.Cqrs.Client&version=0.24.0
Rask.Cqrs.Client
The browser half of Rask.Cqrs remote dispatch, for Rask, a full-stack .NET web
framework for teams of any size. A page running in WebAssembly reaches its server through the same
IDispatcher call it would make in-process — no HttpClient at the call site, no /api/* endpoint to
write, nothing on a message marking it as remote.
- Every request message the client dispatches goes to the server: queries as GET, commands as POST, files as multipart, subscriptions as server-sent events.
- A client is a pure client — a stray client-side handler can never quietly intercept a request. Events are the deliberate exception: they fan out locally and travel.
- Reflection-free. The wire codecs are source-generated, so it publishes clean under the WebAssembly trimmer.
- The other half is Rask.Cqrs.Server; neither references the other, so the browser bundle never carries endpoint code.
Install
dotnet add package Rask.Cqrs.Client
rask new Shop --template wasm-hosted scaffolds both halves in one project, with the message records in
Shared/ and the handlers on the server.
Use
// Shared/Orders.cs — compiled into both the browser app and the server
public sealed record GetOrders(int Page) : IQuery<IReadOnlyList<OrderRow>>;
// Client/Program.cs
var host = WasmHostBuilder.CreateDefault();
host.Services.AddRaskCqrsClient();
host.Services.AddRaskQuery(); // QueryClient in the browser
await host.Run<App>();
// A browser page, through Rask.Query: the handler runs on the server.
var orders = QueryClient.Query(new GetOrders(Page));
Guide: CQRS — remote dispatch
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Rask.Cqrs.Client:
| Package | Downloads |
|---|---|
|
Rask.Wasm
The Rask browser host: runs a Rask app's C# components client-side on .NET WebAssembly, with the client halves of the batteries — the mediator and query cache, remote dispatch, accounts, validation and the component kit — on by default. Ships the JS boot scripts, the page shell, and the MSBuild integration that stages them into the published bundle — and, opted in, prerenders every route to static HTML with a sitemap.xml at publish, so a static host serves real pages to visitors and crawlers. 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.1328 | 0 | 12/2/2026 |
| 0.24.1-alpha.0.1313 | 0 | 12/2/2026 |
| 0.24.1-alpha.0.1301 | 0 | 12/2/2026 |
| 0.24.1-alpha.0.1283 | 0 | 12/2/2026 |
| 0.24.1-alpha.0.1270 | 0 | 12/1/2026 |
| 0.24.1-alpha.0.1269 | 0 | 12/1/2026 |
| 0.24.1-alpha.0.1266 | 34 | 12/1/2026 |
| 0.24.1-alpha.0.1226 | 39 | 12/1/2026 |
| 0.24.1-alpha.0.1215 | 40 | 12/1/2026 |
| 0.24.1-alpha.0.1214 | 43 | 12/1/2026 |
| 0.24.1-alpha.0.1196 | 47 | 12/1/2026 |
| 0.24.1-alpha.0.1195 | 43 | 12/1/2026 |
| 0.24.1-alpha.0.1188 | 42 | 12/1/2026 |
| 0.24.1-alpha.0.1187 | 41 | 12/1/2026 |
| 0.24.1-alpha.0.1152 | 56 | 11/30/2026 |
| 0.24.1-alpha.0.1147 | 57 | 11/30/2026 |
| 0.24.1-alpha.0.1145 | 57 | 11/30/2026 |
| 0.24.1-alpha.0.1139 | 57 | 11/30/2026 |
| 0.24.1-alpha.0.1120 | 55 | 11/30/2026 |
| 0.24.0 | 123 | 11/16/2026 |