public static SqlPersistenceWireup UsingSqlPersistence(this Wireup wireup, string connectionName)
 {
     var factory = new ConfigurationConnectionFactory(connectionName);
     return wireup.UsingSqlPersistence(factory);
 }
 public static IDisposable OpenScope(Guid streamId, string connectionName)
 {
     var factory = new ConfigurationConnectionFactory(connectionName);
     return factory.Open(streamId, connectionName);
 }
 public static SqlPersistenceWireup UsingSqlPersistence(
     this Wireup wireup, string masterConnectionName, string replicaConnectionName)
 {
     var factory = new ConfigurationConnectionFactory(masterConnectionName, replicaConnectionName, 1);
     return wireup.UsingSqlPersistence(factory);
 }