Akay.To.Messaging.Rebus 1.0.5

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

Akay.To.Messaging.Rebus

Proveedor de mensajería que implementa los contratos de Akay.To.Core (IMessageBus, IMessageHandler<T>) con Rebus.

¿Para qué sirve?

Para enviar comandos point-to-point y publicar eventos pub/sub con un bus real (RabbitMQ, Azure Service Bus o InMemory), con routing declarativo, retry y auto-subscribe, sin acoplar tu aplicación a Rebus.

Funcionalidades

Registro

services.AddRebusMessaging(settings?.MessagingSettings, typeof(Program).Assembly);

Si MessagingSettings es null, no registra nada (fail-safe). Registrar un segundo proveedor de IMessageBus lanza InvalidOperationException.

Transports

Transport Uso
InMemory Desarrollo y tests
RabbitMq Producción, requiere connection string
AzureServiceBus Producción, requiere connection string

La cola de errores por defecto es {InputQueueName}.error, con MaxDeliveryAttempts configurable.

Routing

Los comandos ICommandMessage con route configurada se envían a su cola destino; sin route, se usan SendLocal. Los eventos IIntegrationEvent usan pub/sub de Rebus con auto-subscribe.

{
  "MessagingSettings": {
    "Transport": "RabbitMq",
    "ConnectionString": "amqp://guest:guest@localhost",
    "InputQueueName": "my-api",
    "MaxDeliveryAttempts": 3,
    "Routes": {
      "MyApp.GenerateReportMessage, MyApp.Application": "my-worker"
    }
  }
}

Handlers

Los handlers implementan IMessageHandler<T> y se descubren automáticamente de los assemblies indicados. Para registro explícito, pon AutoRegisterHandlers a false y usa:

services.AddRebusHandler<GenerateReportMessage, ReportHandler>();

Opciones de mensaje

MessageSendOptions / MessagePublishOptions: Delay (deferral de Rebus) y TimeToLive (mapeado a TimeToBeReceived). Los headers reservados de Rebus no se pueden sobrescribir.

Health check

rebus_messaging verifica que el bus esté operativo (para transporte InMemory siempre devuelve Healthy).

Documentación

Consulta docs/Messaging.md para detalles de configuración.

Changelog

1.0.5

  • 2026-09-10
  • Actualiza Akay.To.Core y mejora documentación en español (a1e21a8)

1.0.4

  • 2026-07-28
  • chore: bump Akay.To.Core to 1.1.5 (0363639)

1.0.3

  • 2026-07-21
  • chore: update reference to Akay.To.Core 1.1.3 (c7e8c1f)

1.0.2

  • 2026-07-17
  • fix: referencia duplicada a akay.to.core (67a0581)

1.0.1

  • 2026-07-16
  • Agregar archivos de proyecto. (68cc479)
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
1.0.5 104 9/10/2026
1.0.4 121 7/28/2026
1.0.3 117 7/21/2026
1.0.2 103 7/17/2026