public SmmFacility(MultiverseConfiguration conf, DbFacility dbFacility) { if (conf == null) { throw new ArgumentNullException(nameof(conf)); } this.conf = conf; dataBase = dbFacility; }
public ElasticScaleConnectionProvider(ShardMapManager smm, MultiverseConfiguration conf, DbFacility database) { if (smm == null) { throw new ArgumentNullException(nameof(smm)); } if (conf == null) { throw new ArgumentNullException(nameof(conf)); } if (database == null) { throw new ArgumentNullException(nameof(database)); } this.smm = smm; this.conf = conf; this.database = database; }
public ElasticTenantsCommonConnectionProvider(ShardMapManager smm, MultiverseConfiguration conf, SmmFacility shards, DbFacility database) { if (smm == null) { throw new ArgumentNullException(nameof(smm)); } if (shards == null) { throw new ArgumentNullException(nameof(shards)); } if (database == null) { throw new ArgumentNullException(nameof(database)); } if (conf == null) { throw new ArgumentNullException(nameof(conf)); } connectionString = database.GetConnectionString(conf.ShardMapManagerServerName, conf.ShardMapManagerDatabaseName); this.smm = smm; this.shards = shards; this.database = database; this.conf = conf; }
public SmmFacility(MultiverseConfiguration conf) : this(conf, new DbFacility(conf.UniverseUserId, conf.UniversePassword)) { }