We’re trying to add idempotent operations to a legacy ASP.NET Framework 4.8 app. It’s to prevent a payment endpoint in Web API from processing duplicate transactions.
The examples and libraries all work with .NET Core (such as this). It’s possible to roll a custom solution using something similar to this article. And there’s a version of Polly for .NET 4.x to add exponential backoff with jitter.
Is there an idempotent library for ASP.NET Framework 4.x or a comprehensive example?