예제 #1
0
        public System.Collections.Generic.List <PropertiesMessage> GetChainProperties()
        {
            System.DateTime arg_05_0 = System.DateTime.Now;
            SystemThreadPool <SnmpConfiger, PropertiesMessage> systemThreadPool = new SystemLargeThreadPool <SnmpConfiger, PropertiesMessage>(this.snmpConfigs);

            return(systemThreadPool.GetResults(delegate(System.Collections.ICollection col, object obj)
            {
                SnmpConfiger snmpConfig = (SnmpConfiger)obj;
                SnmpExecutor snmpExecutor = new DefaultSnmpExecutor(snmpConfig);
                System.Collections.Generic.List <PropertiesMessage> list = new System.Collections.Generic.List <PropertiesMessage>();
                try
                {
                    list = snmpExecutor.GetChainProperties();
                }
                catch (System.Exception)
                {
                }
                if (list != null && list.Count > 0)
                {
                    lock (col)
                    {
                        foreach (PropertiesMessage current in list)
                        {
                            ((System.Collections.Generic.List <PropertiesMessage>)col).Add(current);
                        }
                    }
                }
            }));
        }