Configuration & Integrations — Outbox
Configure producer registration, background dispatching, broker routing, and ecosystem integrations across 3.0.0.
Producer & Dispatcher Registration (EricksonLopez.Outbox.Hosting)
Section titled “Producer & Dispatcher Registration (EricksonLopez.Outbox.Hosting)”services.AddOutbox(Action<OutboxOptions>?): RegistersIOutbox,ScopedOutboxCollector,OutboxStartupValidator, andOutboxMetrics.services.AddOutboxDispatcher(Action<OutboxDispatcherOptions>?): Registers the background polling dispatcher (SKIP LOCKEDconcurrency, batch size, retry backoff, dead-letter thresholds).- Per-Alias Broker Routing: Use
options.Route("orders.placed").To<TBroker>()oroptions.UseBroker<TBroker>(retryPolicy, circuitBreaker)to route specific aliases to distinct brokers.
Brokers, Storage & Ecosystem Packages (3.0.0)
Section titled “Brokers, Storage & Ecosystem Packages (3.0.0)”- RabbitMQ (
namespace EricksonLopez.Outbox.RabbitMQ;):RabbitMQBrokerPublisher(IChannel channel, IOutboxSerializer serializer, string exchangeName = "outbox.exchange")(note the namespace isEricksonLopez.Outbox.RabbitMQ, notEricksonLopez.Outbox.Brokers.RabbitMQ). - PostgreSQL (
EricksonLopez.Outbox.Storage.PostgreSql):options.UsePostgreSql(connectionString, configureStorage)registersPostgreSqlOutboxRepository,PostgreSqlDeadLetterRepository,PostgreSqlIdempotencyRepository, andPostgreSqlVersionValidator(PG >= 15). - ASP.NET Core, Events & Mediator:
RequireIdempotency("Idempotency-Key")(EricksonLopez.Outbox.Inbox.AspNetCore),AddOutboxEventPublisher()(EricksonLopez.Outbox.Events), andAddOutboxNotificationHandler<T>()(EricksonLopez.Outbox.Mediator). - Deprecated Bridge (
ADR-036):EricksonLopez.Outbox.MediatRis deprecated in favor ofEricksonLopez.Outbox.Mediator.