public static Wireup UsingMongoPersistence(
     this Wireup wireup, string connectionName, IDocumentSerializer serializer)
 {
     wireup.With(new MongoPersistenceFactory(connectionName, serializer).Build());
     return(wireup);
 }
예제 #2
0
        public static PersistenceWireup UsingInMemoryPersistence(this Wireup wireup)
        {
            wireup.With <IPersistStreams>(new InMemoryPersistenceEngine());

            return(new PersistenceWireup(wireup));
        }