KrapkaNet.Messaging.Abstractions 0.0.40-PR006-15

This is a prerelease version of KrapkaNet.Messaging.Abstractions.
dotnet add package KrapkaNet.Messaging.Abstractions --version 0.0.40-PR006-15
                    
NuGet\Install-Package KrapkaNet.Messaging.Abstractions -Version 0.0.40-PR006-15
                    
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="KrapkaNet.Messaging.Abstractions" Version="0.0.40-PR006-15" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KrapkaNet.Messaging.Abstractions" Version="0.0.40-PR006-15" />
                    
Directory.Packages.props
<PackageReference Include="KrapkaNet.Messaging.Abstractions" />
                    
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 KrapkaNet.Messaging.Abstractions --version 0.0.40-PR006-15
                    
#r "nuget: KrapkaNet.Messaging.Abstractions, 0.0.40-PR006-15"
                    
#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 KrapkaNet.Messaging.Abstractions@0.0.40-PR006-15
                    
#: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=KrapkaNet.Messaging.Abstractions&version=0.0.40-PR006-15&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=KrapkaNet.Messaging.Abstractions&version=0.0.40-PR006-15&prerelease
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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