Skip to content

Search EricksonLopez.* Ecosystem

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

Configuration & Integrations — Idempotency

L2StableNuGet: v2.0.0Local HEAD: v3.1.0AOT: Full

Wire IdempotencyEngine, background retention cleanup, ASP.NET Core HTTP middleware, Mediator behaviors, and relational/Redis stores via DI.

  • services.AddIdempotencyCore(options => { ... }) — registers IdempotencyEngine and validates DefaultRetentionDuration >= DefaultLeaseDuration.
  • services.AddIdempotencyCleanupService(options => { ... }) — registers background expiration pruning.
  • services.AddPostgreSqlIdempotencyStore(...) — requires an NpgsqlDataSource registered in DI.
  • InMemoryIdempotencyStore(TimeProvider? timeProvider = null) in EricksonLopez.Idempotency.Testing has no DI helper; register explicitly with services.AddSingleton<IIdempotencyStore>(new InMemoryIdempotencyStore()).
  • ASP.NET Core (EricksonLopez.Idempotency.AspNetCore): Call services.AddAspNetCoreIdempotency(...) and app.UseIdempotency(), or decorate Minimal APIs with .WithIdempotency() / [Idempotent] (v2.0.0 metadata precedence per ADR-018).
  • Mediator (EricksonLopez.Idempotency.Mediator): Call services.AddMediatorIdempotency() to wrap idempotent commands in the mediator pipeline.