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.Mediator

Common compiler and DI diagnostics when working with EricksonLopez.Mediator (2.0.0).

  • Cause 1: Missing EricksonLopez.Mediator.Generator package in the assembly calling AddEricksonLopezMediator().
  • Cause 2: Missing using Microsoft.Extensions.DependencyInjection; (ImplicitUsings=disable), because DependencyInjectionGenerator emits the extension method into Microsoft.Extensions.DependencyInjection.
  • Handlers must return ValueTask<TResponse> (or ValueTask for INotificationHandler), not Task<TResponse>.
  • Inside IPipelineBehavior<,>, invoke await next.InvokeAsync(), not next().
  • Streaming requests implement IStreamRequest<TResponse>, not IStreamQuery<TResponse>.
  • EricksonLopez.Mediator.Polly is [Obsolete] in v2.0.0 (TreatWarningsAsErrors=true fails the build). Replace it with EricksonLopez.Resilience.Mediator.
  • Use immutable sealed record positional constructors or { get; init; } on CQRS commands/queries (local v3+ analyzer ELM013 flags mutable { get; set; }).