Troubleshooting — EricksonLopez.Idempotency
Common issues when integrating EricksonLopez.Idempotency (2.0.0) on .NET 10.
- Symptom:
CS1503when passing astringcontent type as the second argument tonew ExecutionResponse(...). - Fix: The second parameter is
IReadOnlyDictionary<string, string[]>? headers = null, notstring contentType. Passnullor a header dictionary (e.g.,new Dictionary<string, string[]> { ["Content-Type"] = ["application/json"] }).
Missing NpgsqlDataSource or InMemoryIdempotencyStore Extension
Section titled “Missing NpgsqlDataSource or InMemoryIdempotencyStore Extension”- PostgreSQL:
AddPostgreSqlIdempotencyStorerequiresNpgsqlDataSourceto be registered in DI beforehand. - Testing:
InMemoryIdempotencyStoredoes not provide a DI extension method; register it withservices.AddSingleton<IIdempotencyStore>(new InMemoryIdempotencyStore()).
Result Namespace Collision & Oracle Runtime Reflection
Section titled “Result Namespace Collision & Oracle Runtime Reflection”- Importing
EricksonLopez.Idempotency.ResultalongsideEricksonLopez.Resultshadows non-genericResult; aliasusing ResultOutcome = EricksonLopez.Result.Result;if needed. EricksonLopez.Idempotency.Oraclecompiles withIsAotCompatible=true, thoughOracle.ManagedDataAccess.Coreuses reflection at runtime (noted inREADME.md:110).