KrapkaNet.Messaging.Abstractions
0.0.40-PR006-15
dotnet add package KrapkaNet.Messaging.Abstractions --version 0.0.40-PR006-15
NuGet\Install-Package KrapkaNet.Messaging.Abstractions -Version 0.0.40-PR006-15
<PackageReference Include="KrapkaNet.Messaging.Abstractions" Version="0.0.40-PR006-15" />
<PackageVersion Include="KrapkaNet.Messaging.Abstractions" Version="0.0.40-PR006-15" />
<PackageReference Include="KrapkaNet.Messaging.Abstractions" />
paket add KrapkaNet.Messaging.Abstractions --version 0.0.40-PR006-15
#r "nuget: KrapkaNet.Messaging.Abstractions, 0.0.40-PR006-15"
#:package KrapkaNet.Messaging.Abstractions@0.0.40-PR006-15
#addin nuget:?package=KrapkaNet.Messaging.Abstractions&version=0.0.40-PR006-15&prerelease
#tool nuget:?package=KrapkaNet.Messaging.Abstractions&version=0.0.40-PR006-15&prerelease
KrapkaNet.Messaging.Abstractions
IMessageBusClient<TRequest, TReply> sends a typed request and awaits its reply. A caller can depend on a single request/reply pair, such as IMessageBusClient<GetInvoice, InvoiceDetails>. The request type defines any application identifiers. The transport correlates concurrent calls.
IMessageBusWorker<TMessage> runs a subscription for one delivery type and reports when it is ready. Its handler receives the delivery and a cancellation token. IMessagePublisher<TMessage> publishes a message and completes when the transport accepts it. Applications choose their payloads, routes, and handler behavior.
MessageRoutes maps case-sensitive routing keys to the message types registered for one consumer. By default the key is the CLR type's simple name. Register an alias to continue accepting an older key during an independent deployment or while durable messages remain queued.
using KrapkaNet.Messaging.Abstractions;
var routes = new MessageRoutes(
[typeof(IssueInvoice), typeof(GetInvoice), typeof(InvoiceIssued)],
new Dictionary<string, Type> { ["invoice.issued"] = typeof(InvoiceIssued) });
var key = routes.GetKey(typeof(InvoiceIssued)); // "InvoiceIssued"
var type = routes.Resolve("invoice.issued"); // typeof(InvoiceIssued)
The constructor rejects ambiguous names and aliases. GetKey verifies that the exact message type is registered. Resolve returns null for an unknown key. Bindings includes both canonical names and aliases so a provider can bind its queue to every accepted key.
IDurableBusRequest marks messages for which a provider should use durable delivery. MessageBusUnavailableException reports a transport failure. A caller that times out can still have a command in flight.
| Product | Versions 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 was computed. 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. |
-
net8.0
- No dependencies.
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.0.40-PR006-15 | 82 | 12/4/2026 |
| 0.0.40-PR006-11 | 59 | 12/4/2026 |