Configuración e Integraciones — Outbox
Configura registro de productores, dispatcher en segundo plano, enrutamiento por broker e integraciones del ecosistema en 3.0.0.
Registro de Productor y Dispatcher (EricksonLopez.Outbox.Hosting)
Sección titulada «Registro de Productor y Dispatcher (EricksonLopez.Outbox.Hosting)»services.AddOutbox(Action<OutboxOptions>?): RegistraIOutbox,ScopedOutboxCollector,OutboxStartupValidatoryOutboxMetrics.services.AddOutboxDispatcher(Action<OutboxDispatcherOptions>?): Registra el dispatcher de sondeo (SKIP LOCKED, tamaño de lote, backoff de reintentos, umbrales de dead-letter).- Enrutamiento por Alias: Usa
options.Route("orders.placed").To<TBroker>()ooptions.UseBroker<TBroker>(retryPolicy, circuitBreaker)para dirigir alias a distintos brokers.
Brokers, Almacenamiento y Paquetes del Ecosistema (3.0.0)
Sección titulada «Brokers, Almacenamiento y Paquetes del Ecosistema (3.0.0)»- RabbitMQ (
namespace EricksonLopez.Outbox.RabbitMQ;):RabbitMQBrokerPublisher(IChannel channel, IOutboxSerializer serializer, string exchangeName = "outbox.exchange")(nota: el espacio de nombres esEricksonLopez.Outbox.RabbitMQ, noEricksonLopez.Outbox.Brokers.RabbitMQ). - PostgreSQL (
EricksonLopez.Outbox.Storage.PostgreSql):options.UsePostgreSql(connectionString, configureStorage)registraPostgreSqlOutboxRepository,PostgreSqlDeadLetterRepository,PostgreSqlIdempotencyRepositoryyPostgreSqlVersionValidator(PG >= 15). - ASP.NET Core, Events y Mediator:
RequireIdempotency("Idempotency-Key")(EricksonLopez.Outbox.Inbox.AspNetCore),AddOutboxEventPublisher()(EricksonLopez.Outbox.Events) yAddOutboxNotificationHandler<T>()(EricksonLopez.Outbox.Mediator). - Puente Obsoleto (
ADR-036):EricksonLopez.Outbox.MediatRestá obsoleto en favor deEricksonLopez.Outbox.Mediator.