Claudalisk.Persistence.Abstractions 0.1.0-alpha.5

This is a prerelease version of Claudalisk.Persistence.Abstractions.
dotnet add package Claudalisk.Persistence.Abstractions --version 0.1.0-alpha.5
                    
NuGet\Install-Package Claudalisk.Persistence.Abstractions -Version 0.1.0-alpha.5
                    
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="Claudalisk.Persistence.Abstractions" Version="0.1.0-alpha.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Claudalisk.Persistence.Abstractions" Version="0.1.0-alpha.5" />
                    
Directory.Packages.props
<PackageReference Include="Claudalisk.Persistence.Abstractions" />
                    
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 Claudalisk.Persistence.Abstractions --version 0.1.0-alpha.5
                    
#r "nuget: Claudalisk.Persistence.Abstractions, 0.1.0-alpha.5"
                    
#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 Claudalisk.Persistence.Abstractions@0.1.0-alpha.5
                    
#: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=Claudalisk.Persistence.Abstractions&version=0.1.0-alpha.5&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Claudalisk.Persistence.Abstractions&version=0.1.0-alpha.5&prerelease
                    
Install as a Cake Tool

Claudalisk.Persistence.Abstractions

IUnitOfWork and ConcurrencyConflictException, without EF Core or Npgsql types. Handlers and the dispatching library reference this package, and Claudalisk.Persistence implements it.

IUnitOfWork

await unitOfWork.RunAsync(async token =>
{
    await ordering.SaveChangesAsync(token);
}, cancellationToken);
  • RunAsync runs the work in one transaction. It commits when the work returns and rolls back when the work throws. The overload with a type argument returns what the work returns.
  • A nested RunAsync joins the outer transaction. It starts none of its own, and the outer call commits or rolls back for both.
  • IsActive is true while a unit of work runs in the scope.

The dispatcher runs every command in a unit of work, so a handler seldom calls RunAsync itself.

ConcurrencyConflictException

Thrown when a write finds that someone else changed the data since it was read. The dispatcher sends the command again, up to DispatchingOptions.ConcurrencyAttempts times. Other code that catches it should read the data again before it retries. The web package answers 409.

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.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net11.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Claudalisk.Persistence.Abstractions:

Package Downloads
Claudalisk.AspNetCore

What every Host needs: one Problem Details handler, conditional writes, HAL members, the health endpoint and module tags in the OpenAPI document.

Claudalisk.Dispatching

The in-process dispatcher: handlers found through module registration and a pipeline of logging, validation and the unit of work.

Claudalisk.Persistence

One data source, one connection per scope, the unit of work and module DbContexts with their own schemas.

Claudalisk.Jobs

Queued work as jobs: queueing in the unit of work, workers with retries, heartbeats, cancel and progress, batch jobs, event fan-out and the jobs router.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-alpha.5 106 11/24/2026
0.1.0-alpha.4 180 11/22/2026
0.1.0-alpha.3 89 11/22/2026
0.1.0-alpha.2 97 11/21/2026
0.1.0-alpha.1 693 11/8/2026