Yapidoo.Common.Messaging
1.0.0
dotnet add package Yapidoo.Common.Messaging --version 1.0.0
NuGet\Install-Package Yapidoo.Common.Messaging -Version 1.0.0
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="Yapidoo.Common.Messaging" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Yapidoo.Common.Messaging" Version="1.0.0" />
<PackageReference Include="Yapidoo.Common.Messaging" />
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 Yapidoo.Common.Messaging --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Yapidoo.Common.Messaging, 1.0.0"
#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 Yapidoo.Common.Messaging@1.0.0
#: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=Yapidoo.Common.Messaging&version=1.0.0
#tool nuget:?package=Yapidoo.Common.Messaging&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Yapidoo.Common.Messaging
Shared RabbitMQ messaging abstractions, serializer wiring, publisher wiring, and consumer wiring for Yapidoo .NET 10 backend services.
This is the maintained documentation file for the package.
What is in this package
services.AddYapidooMessagingPublisher(configurationSection)services.AddYapidooMessagingConsumer<THandler, TPayload>(configurationSection)services.AddYapidooMessagingSerializer()IIntegrationEventPublisherIIntegrationEventHandler<TPayload>IMessageSerializerRabbitMqOptionsRabbitMqIntegrationEventPublisherRabbitMqConsumerHostedService<THandler, TPayload>IntegrationEventMessage<TPayload>
Installation
dotnet add package Yapidoo.Common.Messaging
Project path
services/common/Yapidoo.Common.Messaging
Usage
Register serializer only
using Yapidoo.Common.Messaging.Registration;
builder.Services.AddYapidooMessagingSerializer();
Register publisher
using Yapidoo.Common.Messaging.Registration;
builder.Services.AddYapidooMessagingPublisher(
builder.Configuration.GetSection("Messaging:Publisher"));
Register consumer
using Yapidoo.Common.Messaging.Abstractions;
using Yapidoo.Common.Messaging.Models;
using Yapidoo.Common.Messaging.Registration;
builder.Services.AddYapidooMessagingConsumer<UserRegisteredHandler, UserRegisteredPayload>(
builder.Configuration.GetSection("Messaging:Consumers:UserRegistered"));
public sealed class UserRegisteredHandler : IIntegrationEventHandler<UserRegisteredPayload>
{
public Task HandleAsync(IntegrationEventMessage<UserRegisteredPayload> message, CancellationToken cancellationToken = default)
{
// map to use-case command and execute business reaction
return Task.CompletedTask;
}
}
public sealed record UserRegisteredPayload(Guid IdentityUserId, string Email);
Baseline configuration example
{
"Messaging": {
"Publisher": {
"ConnectionString": "amqp://guest:guest@localhost:5672",
"ExchangeName": "yapidoo.integration",
"ExchangeType": "topic"
},
"Consumers": {
"UserRegistered": {
"ConnectionString": "amqp://guest:guest@localhost:5672",
"ExchangeName": "yapidoo.integration",
"ExchangeType": "topic",
"QueueName": "users.user-registered",
"RoutingKey": "auth.user.registered",
"PrefetchCount": 16,
"RetryCount": 3,
"DeadLetterExchange": "yapidoo.integration.dlx",
"DeadLetterQueue": "users.user-registered.dlq"
}
}
}
}
Change the code
Typical flow:
- Update abstractions/options/registration/publisher/consumer code.
- Add or update tests in
tests/Yapidoo.Common.Messaging.Tests/. - Run local validation:
dotnet restore services/common/Yapidoo.Common.Messaging/Yapidoo.Common.Messaging.sln
dotnet test services/common/Yapidoo.Common.Messaging/Yapidoo.Common.Messaging.sln
dotnet build services/common/Yapidoo.Common.Messaging/Yapidoo.Common.Messaging.csproj -c Release
Usage rules
- use shared registration from this package for RabbitMQ publisher/consumer wiring
- keep business reactions in use-case handlers, not in broker plumbing
- keep secrets and sensitive payload data out of logs
License
MIT
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.0)
- RabbitMQ.Client (>= 6.8.1)
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 |
|---|---|---|
| 1.0.0 | 169 | 3/20/2026 |
Initial baseline release with common messaging abstractions, RabbitMQ options, DI registration extensions, JSON serializer, and baseline publisher/consumer plumbing.