Incursa.Platform.Idempotency 6.0.4

Prefix Reserved
dotnet add package Incursa.Platform.Idempotency --version 6.0.4
                    
NuGet\Install-Package Incursa.Platform.Idempotency -Version 6.0.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Incursa.Platform.Idempotency" Version="6.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Incursa.Platform.Idempotency" Version="6.0.4" />
                    
Directory.Packages.props
<PackageReference Include="Incursa.Platform.Idempotency" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Incursa.Platform.Idempotency --version 6.0.4
                    
#r "nuget: Incursa.Platform.Idempotency, 6.0.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Incursa.Platform.Idempotency@6.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Incursa.Platform.Idempotency&version=6.0.4
                    
Install as a Cake Addin
#tool nuget:?package=Incursa.Platform.Idempotency&version=6.0.4
                    
Install as a Cake Tool

Idempotency

Incursa.Platform.Idempotency provides a small abstraction for tracking idempotency keys across retries and workers.

Core abstraction

  • IIdempotencyStore manages the lifecycle of an idempotency key.
  • IIdempotencyStoreProvider and IIdempotencyStoreRouter help resolve stores in multi-database setups.

Typical flow

  1. Call TryBeginAsync with a stable idempotency key.
  2. If it returns true, perform the work.
  3. Call CompleteAsync when the operation is finished.
  4. Call FailAsync when the operation should be retried later.

Usage

public sealed class ChargeProcessor
{
    private readonly IIdempotencyStore store;

    public ChargeProcessor(IIdempotencyStore store)
    {
        this.store = store;
    }

    public async Task<bool> ProcessAsync(string idempotencyKey, CancellationToken cancellationToken)
    {
        if (!await store.TryBeginAsync(idempotencyKey, cancellationToken))
        {
            return false;
        }

        try
        {
            // perform external call
            await store.CompleteAsync(idempotencyKey, cancellationToken);
            return true;
        }
        catch
        {
            await store.FailAsync(idempotencyKey, cancellationToken);
            throw;
        }
    }
}
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Incursa.Platform.Idempotency:

Package Downloads
Incursa.Platform.ExactlyOnce

Exactly-once orchestration primitives built on idempotency and verification hooks.

Incursa.Platform.SqlServer

SQL Server provider for Incursa Platform outbox, inbox, scheduler, fanout, metrics, and leases.

Incursa.Platform.Postgres

PostgreSQL provider for Incursa Platform outbox, inbox, scheduler, fanout, metrics, and leases.

Incursa.Platform.InMemory

In-memory provider for Incursa Platform primitives for testing and local development.

Incursa.Platform.Email

Outbox-driven email delivery primitives, policies, and provider abstractions for Incursa Platform.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.0.4 597 3/13/2026
6.0.3 301 3/10/2026
6.0.1 278 3/10/2026
Loading failed