private void Import(MibModule module) { if (module == null) { throw new ArgumentNullException("module"); } if (LoadedModules.Contains(module.Name) || PendingModules.Contains(module.Name)) { //Logger.InfoFormat(CultureInfo.InvariantCulture, "{0} ignored", module.Name); } else { _pendings.Add(module.Name, module); } }
public void Import(IEnumerable <IModule> modules) { if (modules == null) { throw new ArgumentNullException("modules"); } foreach (MibModule module in modules) { if (LoadedModules.Contains(module.Name) || PendingModules.Contains(module.Name)) { //Logger.InfoFormat(CultureInfo.InvariantCulture, "{0} ignored", module.Name); continue; } _pendings.Add(module.Name, module); } }