OpenSleigh.Persistence.Mongo 3.3.0

OpenSleigh.Persistence.Mongo

Nuget

Description

MongoDB Persistence library for OpenSleigh.

For more details, check the Official Documentation.

Installation

This library can be installed from Nuget: https://www.nuget.org/packages/OpenSleigh.Persistence.Mongo/

How-to

The first thing to do is build an instance of MongoConfiguration with the connection details. This can be done by reading the current app configuration. Once done, all you have to do is to call the UseMongoPersistence extension method:


services.AddOpenSleigh(cfg =>{ 
    var mongoSection = Configuration.GetSection("Mongo");
    var mongoCfg = new MongoConfiguration(mongoSection["ConnectionString"],
        mongoSection["DbName"]);
    cfg.UseMongoPersistence(mongoCfg);
    
    // register the Sagas here
});

Of course it can be used in conjunction with any other Transport library as well (eg. InMemory or RabbitMQ).


Do you like this project? Then consider giving a donation! Donate

Showing the top 20 packages that depend on OpenSleigh.Persistence.Mongo.

Packages Downloads
OpenSleigh.Samples.Sample2.Worker
Package Description
0

.NET 8.0

.NET 9.0

.NET 10.0

Version Downloads Last updated
3.3.0 0 3/21/2026
3.0.6 0 1/23/2026