Beispiel #1
0
        public List <ISiteHost> GetAllHostsNonAsync()
        {
            List <ISiteHost> hosts = new List <ISiteHost>();

            using (DbDataReader reader = dbSiteSettings.GetAllHostsNonAsync())
            {
                while (reader.Read())
                {
                    SiteHost host = new SiteHost();
                    host.LoadFromReader(reader);
                    hosts.Add(host);
                }
            }

            return(hosts);
        }