public static void Register(string name, ConfMgmt conf) { if (_inst.ContainsKey(name)) { conf._log.Warn($"ConfMgmt({name}) already exist"); } _inst[name] = conf; }
public static ConfMgmt Inst(string name) { if (!_inst.ContainsKey(name)) { _inst[name] = new ConfMgmt(name); } return(_inst[name]); }