OpenSleigh.Persistence.Mongo 3.0.6
OpenSleigh.Persistence.Mongo
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).
Showing the top 20 packages that depend on OpenSleigh.Persistence.Mongo.
| Packages | Downloads |
|---|---|
|
OpenSleigh.Samples.Sample2.Worker
Package Description
|
0 |
.NET 8.0
- OpenSleigh (>= 3.0.6)
- Mongodb.Driver (>= 3.4.0)
.NET 9.0
- OpenSleigh (>= 3.0.6)
- Mongodb.Driver (>= 3.4.0)
.NET 10.0
- OpenSleigh (>= 3.0.6)
- Mongodb.Driver (>= 3.4.0)