コード例 #1
0
        public static void Register(string name, ConfMgmt conf)
        {
            if (_inst.ContainsKey(name))
            {
                conf._log.Warn($"ConfMgmt({name}) already exist");
            }

            _inst[name] = conf;
        }
コード例 #2
0
        public static ConfMgmt Inst(string name)
        {
            if (!_inst.ContainsKey(name))
            {
                _inst[name] = new ConfMgmt(name);
            }

            return(_inst[name]);
        }