LevelUp.ServiceDefaults.Marten 0.3.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package LevelUp.ServiceDefaults.Marten --version 0.3.1
                    
NuGet\Install-Package LevelUp.ServiceDefaults.Marten -Version 0.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="LevelUp.ServiceDefaults.Marten" Version="0.3.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LevelUp.ServiceDefaults.Marten" Version="0.3.1" />
                    
Directory.Packages.props
<PackageReference Include="LevelUp.ServiceDefaults.Marten" />
                    
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 LevelUp.ServiceDefaults.Marten --version 0.3.1
                    
#r "nuget: LevelUp.ServiceDefaults.Marten, 0.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 LevelUp.ServiceDefaults.Marten@0.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=LevelUp.ServiceDefaults.Marten&version=0.3.1
                    
Install as a Cake Addin
#tool nuget:?package=LevelUp.ServiceDefaults.Marten&version=0.3.1
                    
Install as a Cake Tool

LevelUp.ServiceDefaults.Marten

Opt-in client satellite for LevelUp.ServiceDefaults that registers a Wolverine-integrated Marten document store with lightweight sessions over an injected connection string, and adds an Npgsql readiness probe so the store joins the core's shared /health surface. The Marten and Wolverine dependencies are isolated here so they stay out of the AOT-safe core, and the package never references Aspire.Hosting — it is a service-side (client) concern.

Usage

builder.AddLevelUpServiceDefaults()
       .AddLevelUpMarten("odf"); // resolves ConnectionStrings:odf from configuration

The connection string is read from configuration (ConnectionStrings:<connectionName>) at registration; no database or network call happens during AddLevelUpMarten.

Saga runtime (AddLevelUpSagaWorker / AddLevelUpSagaProducer)

For a saga-capable Marten + Wolverine runtime split across a headless worker and an API-side producer over a shared Postgres transport, use the role-scoped seams. Each bakes the load-bearing posture for its role; everything app-specific (projections, event-type registration, saga discovery, identity middleware, the producer's command types) flows through the configureStore / configureWolverine hooks.

// Headless worker: HotCold daemon + Solo durability + saga-worker queue listener (baked).
builder.AddLevelUpSagaWorker("marten",
    configureStore: opts => { /* projections, event types, doc identity */ },
    configureWolverine: (opts, transport) => { /* saga discovery, middleware, timeouts */ });

// API producer: Disabled daemon + Serverless durability (baked); inline-publish saga-start commands.
builder.AddLevelUpSagaProducer("marten",
    configureWolverine: (opts, transport) =>
        opts.PublishToLevelUpSagaWorker<StartMySaga>(transport));

The producer and worker share LevelUpSagaTransportOptions (transport schema + queue name) and use distinct envelope schemas; override the defaults via configureTransport to match an existing physical layout. The basic AddLevelUpMarten above remains for plain document-store use with no saga runtime.

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.4.0-preview.1 0 6/26/2026
0.3.5 86 6/26/2026
0.3.4 124 6/24/2026
0.3.3 136 6/23/2026
0.3.2 80 6/23/2026
0.3.1 102 6/22/2026
0.3.0 140 6/21/2026
0.3.0-preview.1 53 6/21/2026