Example #1
0
        public BonsaiConfigService(AppDbContext context, StaticConfig cfg)
        {
            _context = context;

            if (cfg.DemoMode == null)
            {
                cfg.DemoMode = new DemoModeConfig();
            }

            _cfg = cfg;
        }
Example #2
0
 public AppConfigService(AppDbContext context, StaticConfig cfg)
 {
     _context = context;
     _cfg     = cfg;
     _config  = new ConcurrentDictionary <string, AppConfig>();
 }