public System.Collections.Generic.List <SnmpConfiger> UpdateDeviceVoltages(float voltage) { System.Collections.Generic.List <SnmpConfiger> failConfigs = new System.Collections.Generic.List <SnmpConfiger>(); SystemThreadPool <SnmpConfiger, bool> systemThreadPool = new SystemLargeThreadPool <SnmpConfiger, bool>(this.snmpConfigs); systemThreadPool.GetResults(delegate(System.Collections.ICollection coll, object obj) { SnmpConfiger snmpConfiger = (SnmpConfiger)obj; SnmpExecutor snmpExecutor = new DefaultSnmpExecutor(snmpConfiger); try { if (!snmpExecutor.UpdateDeviceVoltage(voltage)) { lock (DefaultSnmpExecutors.lockRestore) { failConfigs.Add(snmpConfiger); } } } catch (System.Exception) { lock (DefaultSnmpExecutors.lockRestore) { failConfigs.Add(snmpConfiger); } } }); return(failConfigs); }