Ledon.Queues.RabbitMQ 0.0.1

dotnet add package Ledon.Queues.RabbitMQ --version 0.0.1
                    
NuGet\Install-Package Ledon.Queues.RabbitMQ -Version 0.0.1
                    
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="Ledon.Queues.RabbitMQ" Version="0.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ledon.Queues.RabbitMQ" Version="0.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Ledon.Queues.RabbitMQ" />
                    
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 Ledon.Queues.RabbitMQ --version 0.0.1
                    
#r "nuget: Ledon.Queues.RabbitMQ, 0.0.1"
                    
#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 Ledon.Queues.RabbitMQ@0.0.1
                    
#: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=Ledon.Queues.RabbitMQ&version=0.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Ledon.Queues.RabbitMQ&version=0.0.1
                    
Install as a Cake Tool

Ledon.Queues.RabbitMQ

Ledon Framework 的消息中间件传输:发件箱 ↔ RabbitMQ,集成事件跨服务可靠投递。

// 发布方与消费方装同一个包即可,一行接入
builder.Services.AddLedonRabbitMqTransport(o =>
    o.ConnectionString = "amqp://user:pass@localhost:5672");
  • 发布侧:OutboxDispatcher 自动把集成事件投到 Topic 交换机(路由键 = 事件类型全名),至少一次语义不变;
  • 消费侧:自动启动消费者,订阅本服务队列(默认 {交换机}.{服务名},同服务多实例竞争消费),反序列化后派发给进程内 IIntegrationEventHandler<T>——消费方代码零改动;
  • 故障语义:单条处理失败不确认(nack),broker 重新投递;连接断开由 RabbitMQ.Client 自动重连。
builder.Services.AddLedonRabbitMqTransport(o =>
{
    o.ExchangeName = "myapp.events";       // 发布/订阅共用
    o.QueueName = "myapp.notifications";   // 默认 {交换机}.{服务名}
    o.BindingPattern = "#";                // 路由键模式(默认收全部事件)
    o.PrefetchCount = 20;                  // 预取上限
});

服务名默认取入口程序集名,可用环境变量 LEDON_SERVICE_NAME 覆盖。

完整文档:https://github.com/wosledon/ledon-framework

Product 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.

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.1 48 10/28/2026