Beispiel #1
0
        private DescribeDomainRecordsResponse.Record[] GetRecords(string strType, string strRR)
        {
            List <DescribeDomainRecordsResponse.Record> list = CDomainHelper.GetDomainRecords(CGlobalConfig.DomainName);

            for (int i = list.Count - 1; i >= 0; i--)
            {
                if (list[i].Type != strType || list[i].RR != strRR)
                {
                    list.RemoveAt(i);
                }
            }
            return(list.ToArray());
        }
Beispiel #2
0
        private DescribeDomainRecordsResponse.Record GetRecord(string strType, string strRR)
        {
            List <DescribeDomainRecordsResponse.Record> list = CDomainHelper.GetDomainRecords(CGlobalConfig.DomainName);

            return(list.Find(rec => rec.Type == strType && rec.RR == strRR));
        }