Sendproof.MongoDB 0.1.0-alpha.3

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

Sendproof.MongoDB

Previews for the MongoDB .NET driver in Sendproof. On a replica set or sharded cluster a Preview runs in a transaction (snapshot read concern, majority write concern) that is aborted after the handler, and its document changes are captured. On a standalone server MongoDB can't run transactions, so the Preview runs in guard mode: reads run and the first write blocks it. See the .NET data-stores page for setup, the preview: false mark and what the hook does not cover. An observed Send (Prefer: trace) commits its writes and traces the same document changes, before and after, on a replica set or a standalone server alike.

builder.Services.AddSingleton<IMongoClient>(new MongoClient(mongoUrl));
builder.Services.AddSendproof()
    .AddEntityFrameworkCore<AppDbContext>()
    .AddMongoDB(mongo => mongo.WithName("catalog"));

Register the client first: AddMongoDB replaces that registration with a decorator whose databases and collections add the Preview's session to every call.

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
0.1.0-alpha.3 45 11/24/2026
0.1.0-alpha.2 52 11/24/2026
0.1.0-alpha.1 58 11/22/2026