OpenSleigh.InMemory 3.0.4.1

OpenSleigh.InMemory

Nuget

Description

In-memory Persistence and Transport library for OpenSleigh

Installation

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

How-to

We can use this library for both Persistence and Transport:

Host.CreateDefaultBuilder(args)
    .ConfigureServices((hostContext, services) => {
            services.AddOpenSleigh(cfg =>{ 
                cfg.UseInMemoryTransport()
                    .UseInMemoryPersistence();

            // register the Sagas here
         });
    });

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

If you decide to use the InMemory Transport, you also have to configure each Saga :

Host.CreateDefaultBuilder(args)
    .ConfigureServices((hostContext, services) => {
            // code omitted //
            cfg.AddSaga<MySaga, MySagaState>()
                    .UseStateFactory<StartSaga>(msg => new MySagaState(msg.CorrelationId))
                    .UseInMemoryTransport();
         });
    });

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

Showing the top 20 packages that depend on OpenSleigh.InMemory.

Packages Downloads
OpenSleigh.Samples.Sample1
Package Description
0

Version Downloads Last updated
3.3.0 0 3/21/2026
3.0.6 0 1/23/2026
3.0.4.2 1 5/30/2025
3.0.4.1 1 5/25/2025
3.0.4 1 5/25/2025