private void ProcessItem() { try { Dictionary <string, Slb> dictionary = slbs.ToDictionary((_Closure_0024__._0024I37_002D0 != null) ? _Closure_0024__._0024I37_002D0 : (_Closure_0024__._0024I37_002D0 = (Slb s) => s.SlbIP)); slbs.Clear(); if (LoginConfig.ALIYUN_SLB_ENDPOINT.Equals("UNKNOWN")) { return; } WebRequest webRequest = WebRequest.Create(LoginConfig.ALIYUN_SLB_ENDPOINT); webRequest.GetResponse(); Stream responseStream = webRequest.GetResponse().GetResponseStream(); string[] array = new StreamReader(responseStream, Encoding.UTF8).ReadToEnd().Split(';'); foreach (string text in array) { Slb value = null; if (dictionary.TryGetValue(text, out value)) { slbs.Add(value); } else { slbs.Add(new Slb(text.Trim())); } } dictionary.Clear(); } catch (Exception ex) { ProjectData.SetProjectError(ex); Exception ex2 = ex; ProjectData.ClearProjectError(); } }
internal string _Lambda_0024__37_002D0(Slb s) { return(s.SlbIP); }