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