Ejemplo n.º 1
0
 public SmmFacility(MultiverseConfiguration conf, DbFacility dbFacility)
 {
     if (conf == null)
     {
         throw new ArgumentNullException(nameof(conf));
     }
     this.conf = conf;
     dataBase  = dbFacility;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 public SmmFacility(MultiverseConfiguration conf)
     : this(conf, new DbFacility(conf.UniverseUserId, conf.UniversePassword))
 {
 }