Skip to content

Search EricksonLopez.* Ecosystem

Type a library name, NuGet package ID, .NET type, or architectural concept to search across the portal.

Troubleshooting — EricksonLopez.Outbox

L3StableNuGet: v3.0.0Local HEAD: v4.2.0AOT: Partial

Common DI, namespace, and Roslyn analyzer issues when configuring EricksonLopez.Outbox (3.0.0).

  • AddOutbox / AddOutboxDispatcher: Import using EricksonLopez.Outbox.Hosting; (not EricksonLopez.Outbox).
  • RabbitMQBrokerPublisher: Import using EricksonLopez.Outbox.RabbitMQ; (not EricksonLopez.Outbox.Brokers.RabbitMQ), and supply (IChannel channel, IOutboxSerializer serializer, string exchangeName = "outbox.exchange").

OutboxStartupValidator validates required dependencies eagerly. Ensure all four are registered:

  1. services.AddLogging(); (required by ILogger<OutboxStartupValidator>).
  2. options.UseSerializer(...) (e.g., NativeAotJsonSerializer with your JsonSerializerContext).
  3. options.UseTypeResolver(...) (e.g., InMemoryMessageTypeResolver or UseGeneratedTypes(...)).
  4. A storage provider (options.UsePostgreSql(...)) or explicit IOutboxRepository registration.

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.