DKNet.AspCore.Idempotency.NpgsqlStore 13.3.1

dotnet add package DKNet.AspCore.Idempotency.NpgsqlStore --version 13.3.1
                    
NuGet\Install-Package DKNet.AspCore.Idempotency.NpgsqlStore -Version 13.3.1
                    
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="DKNet.AspCore.Idempotency.NpgsqlStore" Version="13.3.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DKNet.AspCore.Idempotency.NpgsqlStore" Version="13.3.1" />
                    
Directory.Packages.props
<PackageReference Include="DKNet.AspCore.Idempotency.NpgsqlStore" />
                    
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 DKNet.AspCore.Idempotency.NpgsqlStore --version 13.3.1
                    
#r "nuget: DKNet.AspCore.Idempotency.NpgsqlStore, 13.3.1"
                    
#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 DKNet.AspCore.Idempotency.NpgsqlStore@13.3.1
                    
#: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=DKNet.AspCore.Idempotency.NpgsqlStore&version=13.3.1
                    
Install as a Cake Addin
#tool nuget:?package=DKNet.AspCore.Idempotency.NpgsqlStore&version=13.3.1
                    
Install as a Cake Tool

DKNet.AspCore.Idempotency.NpgsqlStore

A PostgreSQL ledger for .NET developers using DKNet minimal-API idempotency.

✨ Why use it?

  • Share reservations across hosts using the same PostgreSQL database.
  • Keep completed response data in a queryable table.
  • Use the provider’s migrations and structured duplicate-key classification.

🚀 Quick Start

Use a .NET 10 ASP.NET Core project.

dotnet new web -f net10.0 -n PackageDemo
cd PackageDemo
dotnet add package DKNet.AspCore.Idempotency.NpgsqlStore

Replace Program.cs with the example, then run dotnet run.

Set ConnectionStrings__Idempotency to a reachable PostgreSQL database connection string. The account must be able to apply the packaged migrations.

using DKNet.AspCore.Idempotency;
using DKNet.AspCore.Idempotency.NpgsqlStore;
var builder = WebApplication.CreateBuilder(args);
var connection = builder.Configuration.GetConnectionString("Idempotency")
    ?? throw new InvalidOperationException("Set ConnectionStrings__Idempotency.");
builder.Services.AddIdempotencyWithNpgsqlStore(connection);
var app = builder.Build();
app.MapPost("/orders", () => Results.Ok(new { Accepted = true }))
    .RequiredIdempotentKey();
await app.RunAsync();

POST twice with X-Idempotency-Key: order-1. The first returns 200 and the retry 409. The ledger is shared by hosts using this database.

Documentation

Guide Read when
Package overview Start with architecture and the end-to-end flow.
Register the PostgreSQL ledger Register provider infrastructure and select the active key store.
Persist reservations and responses in PostgreSQL Trace provider persistence and find migration/tooling settings.
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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
13.3.1 80 10/26/2026
13.3.0 104 10/22/2026
13.2.8 87 10/22/2026
13.2.7 128 10/11/2026
13.2.6 90 10/10/2026
13.2.5 104 10/2/2026
13.2.4 89 10/1/2026
13.2.3 99 10/1/2026
13.2.2 92 10/1/2026
13.2.1 95 10/1/2026
13.2.0 104 10/1/2026
13.1.3 110 9/21/2026
13.1.2 96 9/18/2026
13.1.1 108 9/18/2026
13.1.0 92 9/18/2026
13.0.2 97 9/18/2026
13.0.1 98 9/18/2026
13.0.0 96 9/18/2026
12.0.0 109 9/17/2026
11.0.0 96 9/17/2026
Loading failed