NEventStore / NEventStore.Persistence.MongoDB

Mongo Persistence Engine for NEventStore
MIT License
22 stars 26 forks source link

Defaullt Implementation of IDocumentSerializer #20

Closed BoasE closed 9 years ago

BoasE commented 9 years ago

Hi

is there a default implementation of the IDocumentSerializer for MongoDb integration ?Or do i have to do it on my own?

andreabalducci commented 9 years ago

Just use the default DocumentObjectSerializer

        var store = Wireup.Init()
            .UsingMongoPersistence("events", new DocumentObjectSerializer())
            .InitializeStorageEngine()
            .DoNotDispatchCommits()
            .Build();