Anarchy.Toolkit.Core.Messaging.Abstractions
1.0.6
See the version list below for details.
dotnet add package Anarchy.Toolkit.Core.Messaging.Abstractions --version 1.0.6
NuGet\Install-Package Anarchy.Toolkit.Core.Messaging.Abstractions -Version 1.0.6
<PackageReference Include="Anarchy.Toolkit.Core.Messaging.Abstractions" Version="1.0.6" />
<PackageVersion Include="Anarchy.Toolkit.Core.Messaging.Abstractions" Version="1.0.6" />
<PackageReference Include="Anarchy.Toolkit.Core.Messaging.Abstractions" />
paket add Anarchy.Toolkit.Core.Messaging.Abstractions --version 1.0.6
#r "nuget: Anarchy.Toolkit.Core.Messaging.Abstractions, 1.0.6"
#:package Anarchy.Toolkit.Core.Messaging.Abstractions@1.0.6
#addin nuget:?package=Anarchy.Toolkit.Core.Messaging.Abstractions&version=1.0.6
#tool nuget:?package=Anarchy.Toolkit.Core.Messaging.Abstractions&version=1.0.6
Anarchy.Toolkit.Core.Messaging.Abstractions
Contracts and entities for publishing and receiving broker messages without coupling application code to a broker.
dotnet add package Anarchy.Toolkit.Core.Messaging.Abstractions
- Depend on
IMessageBrokerPublisherfor outbound publishing. - Model inbound and outbound messages and construct outbound messages with
OutboundMessageBuilder. - Supply a concrete broker adapter, such as Infrastructure.Messaging.Aws, at the composition root.
When to use it
Reference these contracts in application code that publishes messages but should not know whether SNS, SQS or another broker sends them. The package defines the message shape and publishing interface; it does not connect to a broker or consume messages on its own.
How to use it
Create an outbound message from an already serialized body and pass it to an injected publisher. The destination and optional source are application-defined names:
using Anarchy.Toolkit.Core.Messaging.Abstractions.Service.MessageBroker;
var builder = new OutboundMessageBuilder("users", source: "oauth");
var message = builder.Build("{\"userId\":123}");
await publisher.PublishAsync(message, cancellationToken);
Register a concrete IMessageBrokerPublisher in the host and resolve the appropriate keyed publisher when using the AWS adapters. The builder also accepts partition keys and attributes; enum destinations are resolved through their descriptions. Batch publishing can report per-chunk outcomes and may throw if any chunk fails, so handle partial success deliberately.
See the toolkit overview.
Releases
1.0.6
- docs: expand XML docblocks across all projects for the DocFX API reference
1.0.5
- refactor(src): clean up code style across library packages
1.0.3
- build: migrate local automation to build tooling
1.0.2
- docs: expand package guides and release histories
1.0.1
- Added a package-specific NuGet README.
1.0.0
- Introduced transport-agnostic message entities, outbound message building, publisher contracts and exceptions.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Anarchy.Toolkit.Core (>= 1.0.6)
- Humanizer (>= 3.0.10)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.15)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.15)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Anarchy.Toolkit.Core.Messaging.Abstractions:
| Package | Downloads |
|---|---|
|
Anarchy.Toolkit.Core.Events
Events: an in-process (local) publish/subscribe bus with DI-based handler dispatch, and a generic domain-event processing pipeline (event envelopes, processors, and handler bus). |
|
|
Anarchy.Toolkit.Infrastructure.Messaging.Aws
AWS SNS and SQS implementations of the message-broker publisher abstraction, with the shared publisher base, request-builder base, inbound mapping, and compression. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release.