public BonsaiConfigService(AppDbContext context, StaticConfig cfg) { _context = context; if (cfg.DemoMode == null) { cfg.DemoMode = new DemoModeConfig(); } _cfg = cfg; }
public AppConfigService(AppDbContext context, StaticConfig cfg) { _context = context; _cfg = cfg; _config = new ConcurrentDictionary <string, AppConfig>(); }