YorumJet.Messaging.Dlx
0.0.6
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package YorumJet.Messaging.Dlx --version 0.0.6
NuGet\Install-Package YorumJet.Messaging.Dlx -Version 0.0.6
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="YorumJet.Messaging.Dlx" Version="0.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="YorumJet.Messaging.Dlx" Version="0.0.6" />
<PackageReference Include="YorumJet.Messaging.Dlx" />
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 YorumJet.Messaging.Dlx --version 0.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: YorumJet.Messaging.Dlx, 0.0.6"
#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 YorumJet.Messaging.Dlx@0.0.6
#: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=YorumJet.Messaging.Dlx&version=0.0.6
#tool nuget:?package=YorumJet.Messaging.Dlx&version=0.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
YorumJet.Messaging.Dlx
Opt-in per-consumer DLX retry for MassTransit on RabbitMQ.
Uses per-queue TTL + dead-letter-exchange topology — no rabbitmq-delayed-message-exchange plugin required.
Özellikler
- Per-consumer opt-in (
UseDlxRetryextension) - Sabit gecikme (
Interval) veya özel schedule (TimeSpan[]) - Exception whitelist — sadece kayıtlı tipler retry edilir, diğerleri MassTransit default
_errorqueue'ya düşer - Publisher confirms — delay queue'ya publish broker tarafından onaylanmazsa orijinal exception rethrow (sessiz kayıp yok)
- W3C trace context korunur —
traceparent/tracestateheader'ları DLX hop'larında kaybolmaz - Versioned queue naming — TTL/schedule değişikliğinde
PRECONDITION_FAILEDolmaz DlxTopologyBootstrapperile startup'ta quorum queue declare
Kurulum
dotnet add package YorumJet.Messaging.Dlx
Kullanım
// Program.cs
var rabbitConfig = builder.Configuration.GetSection("RabbitMq").Get<RabbitMqSettings>()!;
builder.Services.AddDlxRetry(new DlxConnectionSettings
{
Host = rabbitConfig.Host, Port = rabbitConfig.Port,
User = rabbitConfig.User, Password = rabbitConfig.Password,
Vhost = rabbitConfig.Vhost
});
builder.Services.AddHostedService<DlxTopologyBootstrapper>();
// ConsumerDefinition
public sealed class MyConsumerDefinition : ConsumerDefinition<MyConsumer>
{
protected override void ConfigureConsumer(
IReceiveEndpointConfigurator endpoint,
IConsumerConfigurator<MyConsumer> consumer,
IRegistrationContext context)
{
consumer.UseDlxRetry(context, opts =>
{
opts.MaxAttempts = 5;
opts.Schedule(
TimeSpan.FromMinutes(1),
TimeSpan.FromMinutes(5),
TimeSpan.FromMinutes(30),
TimeSpan.FromHours(2),
TimeSpan.FromHours(12));
opts.HandleException<HttpRequestException>();
opts.HandleException<TaskCanceledException>();
});
}
}
| 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
- MassTransit (>= 8.3.6)
- MassTransit.RabbitMQ (>= 8.3.6)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Options (>= 10.0.1)
- RabbitMQ.Client (>= 7.1.2)
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 |
|---|