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 — Messages, Handlers, Middleware & Upcasting

EricksonLopez.Messaging builds a strongly-typed message dispatch pipeline backed by EricksonLopez.Result outcomes.

  • IMessage & [MessageType("name")]: Contracts carry MessageId, Timestamp, and a stable [MessageType] identifier (ELMSG002).
  • IMessageHandler<in TMessage>: Returns ValueTask<Result> from HandleAsync(message, context, ct). DefaultMessageDispatcher maps each message type name to IReadOnlyList<HandlerBinding> for multi-handler Pub/Sub fan-out (BC-002).
  • Default pipeline: AddMessaging() registers TracingMiddleware, LoggingMiddleware, and ExceptionHandlingMiddleware, plus AddDeduplication() for in-memory deduplication.
  • Retries (RetryMiddleware): Configure via new RetryMiddleware(new RetryOptions { MaxRetries = 3, InitialDelay = TimeSpan.FromSeconds(1) }) (v2.0.0 BC-003).
  • Schema Upcasting (IMessageUpcasterInvoker): Implement TargetType alongside SourceType and Upcast (v2.0.0 BC-001), or inherit MessageUpcasterInvoker<TOld, TNew, TUpcaster>.