Ledon.Queues
0.0.1
dotnet add package Ledon.Queues --version 0.0.1
NuGet\Install-Package Ledon.Queues -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" 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" Version="0.0.1" />
<PackageReference Include="Ledon.Queues" />
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 --version 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Ledon.Queues, 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@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&version=0.0.1
#tool nuget:?package=Ledon.Queues&version=0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Ledon.Queues
Ledon Framework 的后台队列与发件箱(Outbox):进程内异步执行 + 跨进程可靠投递。
builder.Services.AddLedonQueues(o => o.WorkerCount = 4);
await queue.EnqueueAsync(async (scope, token) =>
{
var sender = scope.GetRequiredService<IEmailSender>(); // 独立 DI 作用域
await sender.SendAsync(token);
});
有界队列(默认容量 1000,天然背压)、多 worker、单条失败不拖垮 worker。进程重启丢失未执行任务——对丢任务零容忍的场景用发件箱:
public class OrderDbContext : OutboxDbContext; // 继承即获得 OutboxMessages
// 业务事务:事件与数据同一次 SaveChanges
outbox.Add(new OrderPlaced(orderId));
await db.SaveChangesAsync(); // 调度器随后投递并标记
发件箱至少一次语义:单条失败记重试不阻塞后续,超限搁置留待人工处理。
注册 IIntegrationEventTransport 后事件改投消息中间件(broker)而非进程内 handler——现成实现见 Ledon.Queues.RabbitMQ 包。
| 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
- Ledon.Module (>= 0.0.1)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.13)
- Microsoft.Extensions.Caching.Memory (>= 10.0.13)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.13)
- Microsoft.Extensions.DependencyInjection (>= 10.0.13)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.13)
- Microsoft.Extensions.DependencyModel (>= 10.0.13)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.13)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.13)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Ledon.Queues:
| Package | Downloads |
|---|---|
|
Ledon.Queues.RabbitMQ
.NET 10 模块化 Web 开发框架:解耦优先,自动发现与自动注入,能力按需引入。 |
|
|
Ledon.Queues.Kafka
.NET 10 模块化 Web 开发框架:解耦优先,自动发现与自动注入,能力按需引入。 |
|
|
Ledon.Admin
.NET 10 模块化 Web 开发框架:解耦优先,自动发现与自动注入,能力按需引入。 |
|
|
Ledon.Transactions
.NET 10 模块化 Web 开发框架:解耦优先,自动发现与自动注入,能力按需引入。 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.1 | 57 | 10/28/2026 |