Troubleshooting — EricksonLopez.Outbox
Common DI, namespace, and Roslyn analyzer issues when configuring EricksonLopez.Outbox (3.0.0).
AddOutbox() or RabbitMQBrokerPublisher Not Found (ImplicitUsings=disable)
Section titled “AddOutbox() or RabbitMQBrokerPublisher Not Found (ImplicitUsings=disable)”AddOutbox/AddOutboxDispatcher: Importusing EricksonLopez.Outbox.Hosting;(notEricksonLopez.Outbox).RabbitMQBrokerPublisher: Importusing EricksonLopez.Outbox.RabbitMQ;(notEricksonLopez.Outbox.Brokers.RabbitMQ), and supply(IChannel channel, IOutboxSerializer serializer, string exchangeName = "outbox.exchange").
OutboxStartupValidator Fails Under ValidateOnBuild=true
Section titled “OutboxStartupValidator Fails Under ValidateOnBuild=true”OutboxStartupValidator validates required dependencies eagerly. Ensure all four are registered:
services.AddLogging();(required byILogger<OutboxStartupValidator>).options.UseSerializer(...)(e.g.,NativeAotJsonSerializerwith yourJsonSerializerContext).options.UseTypeResolver(...)(e.g.,InMemoryMessageTypeResolverorUseGeneratedTypes(...)).- A storage provider (
options.UsePostgreSql(...)) or explicitIOutboxRepositoryregistration.
OUTBOX003 Analyzer Warning on Consumer Handlers
Section titled “OUTBOX003 Analyzer Warning on Consumer Handlers”EricksonLopez.Outbox.Analyzers emits OUTBOX003 when a class implementing message-handler HandleAsync lacks [InboxConsumer]. Decorate idempotent outbox/inbox consumers with [InboxConsumer] or configure EricksonLopez.Inbox deduplication.