Example #1
0
 public TenantTasks(Tenant tenant, PlsDbContext db, IOptions <AlcuinOptions> opt, IIisService iis, ConfigDatabaseServiceFactory cfgDbFactory)
 {
     _opt    = opt;
     _iis    = iis;
     Dto     = tenant ?? throw new ArgumentNullException(nameof(tenant));
     _server = db.Servers.Find(tenant.ServerId);
     _cfgDb  = cfgDbFactory(_server.ConnectionString(), tenant.ConfigDb);
 }
Example #2
0
 public HomeController(IConfigDatabaseService dbService)
 {
     _dbService = dbService;
 }