Skip to content

AlexShkor/Paralect.Domain

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paralect.Domain (EventStore)

Usage

    // Event store configuration
    var dataTypeRegistry = new AssemblyQualifiedDataTypeRegistry();

    var transitionsRepository = new MongoTransitionRepository(
        dataTypeRegistry,
        mongodbConnectionString);

    var transitionsStorage = new TransitionStorage(transitionsRepository);

    container.Configure(config =>
    {
        config.For<ITransitionStorage>().Singleton().Use(transitionsStorage);
        config.For<IDataTypeRegistry>().Singleton().Use(dataTypeRegistry);
        config.For<IEventBus>().Use<ParalectServiceBusEventBus>();

        // We are using default implementation of repository
        config.For<IRepository>().Use<Repository>();
    });    
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%