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); }
public HomeController(IConfigDatabaseService dbService) { _dbService = dbService; }