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.987 | 0 | 11/28/2026 |
| 0.24.1-alpha.0.979 | 0 | 11/28/2026 |
| 0.24.1-alpha.0.972 | 0 | 11/28/2026 |
| 0.24.1-alpha.0.970 | 0 | 11/28/2026 |
| 0.24.1-alpha.0.907 | 40 | 11/27/2026 |
| 0.24.1-alpha.0.902 | 41 | 11/27/2026 |
| 0.24.1-alpha.0.873 | 43 | 11/27/2026 |
| 0.24.1-alpha.0.822 | 49 | 11/27/2026 |
| 0.24.1-alpha.0.782 | 46 | 11/27/2026 |
| 0.24.1-alpha.0.775 | 45 | 11/27/2026 |
| 0.24.1-alpha.0.774 | 48 | 11/27/2026 |
| 0.24.1-alpha.0.770 | 43 | 11/27/2026 |
| 0.24.1-alpha.0.769 | 54 | 11/26/2026 |
| 0.24.1-alpha.0.767 | 47 | 11/26/2026 |
| 0.24.1-alpha.0.766 | 51 | 11/26/2026 |
| 0.24.1-alpha.0.760 | 52 | 11/26/2026 |
| 0.24.1-alpha.0.759 | 51 | 11/26/2026 |
| 0.24.1-alpha.0.757 | 50 | 11/26/2026 |
| 0.24.1-alpha.0.754 | 53 | 11/26/2026 |
| 0.24.0 | 119 | 11/16/2026 |