OpenSleigh.Persistence.Mongo 2.0.1

.NET 6.0
NuGet\Install-Package OpenSleigh.Persistence.Mongo -Version 2.0.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.
dotnet add package OpenSleigh.Persistence.Mongo --version 2.0.1
<PackageReference Include="OpenSleigh.Persistence.Mongo" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OpenSleigh.Persistence.Mongo --version 2.0.1
#r "nuget: OpenSleigh.Persistence.Mongo, 2.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install OpenSleigh.Persistence.Mongo as a Cake Addin
#addin nuget:?package=OpenSleigh.Persistence.Mongo&version=2.0.1

// Install OpenSleigh.Persistence.Mongo as a Cake Tool
#tool nuget:?package=OpenSleigh.Persistence.Mongo&version=2.0.1

OpenSleigh.Persistence.Mongo

Nuget

Description

MongoDB Persistence library for OpenSleigh

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

Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
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.0.1 44 8/30/2022
2.0.0 226 12/30/2021
1.3.1 246 8/27/2021
1.2.1 174 4/26/2021
1.2.0 146 3/30/2021
1.1.0 146 3/27/2021
1.0.1 231 3/11/2021
1.0.0 192 2/15/2021
0.9.0 305 1/27/2021
0.8.0 237 1/19/2021
0.7.0 163 1/14/2021
0.6.0 189 1/11/2021
0.5.1 200 1/8/2021
0.5.0 239 1/8/2021
0.4.0 212 1/7/2021
0.3.0 189 1/5/2021
0.2.0 245 1/3/2021
0.1.0 161 12/31/2020
0.0.1 189 12/31/2020