public static RavenPersistenceWireup UsingRavenPersistence(
     this Wireup wireup,
     string connectionName,
     RavenPersistenceOptions options)
 {
     return new RavenPersistenceWireup(wireup, connectionName, options);
 }
 public RavenPersistenceFactory(string connectionName, IDocumentSerializer serializer, RavenPersistenceOptions options)
 {
     _options = options;
     _connectionName = connectionName;
     _serializer = serializer;
 }
 public RavenPersistenceFactory(string connectionName, IDocumentSerializer serializer, RavenPersistenceOptions options)
 {
     _options        = options;
     _connectionName = connectionName;
     _serializer     = serializer;
 }
 public RavenPersistenceEngine(IDocumentStore store, IDocumentSerializer serializer, RavenPersistenceOptions options)
 {
     if (store == null)
     {
         throw new ArgumentNullException("store");
     }
     if (serializer == null)
     {
         throw new ArgumentNullException("serializer");
     }
     if (options == null)
     {
         throw new ArgumentNullException("options");
     }
     _store              = store;
     _serializer         = serializer;
     _consistentQueries  = options.ConsistentQueries;
     _consistencyTimeout = options.ConsistencyTimeout;
     _pageSize           = options.PageSize;
     _scopeOption        = options.ScopeOption;
 }
 public RavenPersistenceWireup(Wireup wireup, string connectionName, RavenPersistenceOptions persistenceOptions)
     : base(wireup)
 {
     Logger.Debug(Messages.ConfiguringEngine);
     Container.Register(c => new RavenPersistenceFactory(connectionName, new DocumentObjectSerializer(), persistenceOptions).Build());
 }