public void Register(string namespaceName, IConfigFactory factory) { if (_instances.ContainsKey(namespaceName)) { Logger().Warn($"ConfigFactory({namespaceName}) is overridden by {factory.GetType()}!"); } _instances[namespaceName] = factory; }
public void Register(string namespaceName, IConfigFactory factory) { if (m_instances.ContainsKey(namespaceName)) { logger.Warn(string.Format("ConfigFactory({0}) is overridden by {1}!", namespaceName, factory.GetType())); } m_instances[namespaceName] = factory; }