Bsft.Idempotency.EFCore 2.2.0

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

Bsft.Idempotency.EFCore

The shared idempotency record store: one table on the application's own context, whose unique index is what makes a duplicate request a duplicate across every replica rather than within one process.

Install

dotnet add package Bsft.Idempotency.EFCore

Requires Bsft.Idempotency (pulled transitively), Bsft.Core for the framework's PollLoop the pruner runs on, and Microsoft.EntityFrameworkCore.

Register

Implement IIdempotencyDbContext on the application's context and apply the configuration:

public DbSet<IdempotencyRecordEntity> IdempotencyRecords => Set<IdempotencyRecordEntity>();

protected override void OnModelCreating(ModelBuilder modelBuilder)
    => modelBuilder.ApplyConfiguration(new IdempotencyRecordEntityConfiguration());
services.AddBsftIdempotency(configuration);
services.AddBsftIdempotencyEFCore<AppDbContext>();

The call replaces the in-memory store rather than adding to it, so the order of the two lines does not matter. Do not leave the configuration to convention: without it the key columns are mapped with no unique index and no length, and the store is there and protects nothing.

Configure

Option Default Effect
— — The package declares no options of its own: everything an operator decides is on BsftIdempotencyOptions, and everything the schema decides is in IdempotencyRecordEntityConfiguration.

Validation: none of its own. The retention and the lease that shape the table come from BsftIdempotencyOptions, which AddBsftIdempotency validates at start-up.

Extend

None. The store and the pruner are internal; a host that wants different persistence implements IIdempotencyStore from Bsft.Idempotency and does not take this package.

Documentation

Topic page: docs/idempotency.md. Conventions: docs/package-conventions.md.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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
2.2.0 178 10/23/2026
2.1.0 104 9/28/2026