Skip to content

Search EricksonLopez.* Ecosystem

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

Core Concepts — Outbox, Inbox, Contracts & DispatchResult

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

EricksonLopez.Outbox separates transactional message staging (IOutbox) from asynchronous broker delivery (IBrokerPublisher) and consumer-side deduplication (EricksonLopez.Inbox).

  • [OutboxMessage("alias")] (EricksonLopez.Outbox.Contracts): Assigns a stable type alias persisted in the type column so refactoring C# namespaces never breaks stored messages.
  • NativeAotJsonSerializer / MessagePack / Protobuf: Zero-reflection serializers paired with ArrayPoolBufferWriter<byte> and InMemoryMessageTypeResolver (or UseGeneratedTypes(...) from EricksonLopez.Outbox.SourceGenerators).
  • DbTransactionContext / ToOutboxContext() (EricksonLopez.Outbox.Persistence): Wraps an active DbTransaction (v3.0.0 BC-018 throws ArgumentNullException on null transactions) so outbox.Publish(evt).StoreAsync(txContext, ct) commits or rolls back atomically with domain writes.
  • IBrokerPublisher.PublishRawAsync(...): Implementations must never throw or return default(DispatchResult). Always return DispatchResult.Ok(), DispatchResult.FailAndRetry(ex), or DispatchResult.FailFatal(ex).
  • AddInbox() / AddInMemoryInbox() (EricksonLopez.Inbox): Tracks processed message IDs using EricksonLopez.Idempotency.Abstractions.
  • AddInboxDeduplication() (EricksonLopez.Outbox.Inbox): Middleware and [InboxConsumer] verification (OUTBOX003) to prevent duplicate side effects on at-least-once broker deliveries.