Esempio n. 1
0
		public object Any (BuildBots request)
		{
			List<DBHost> hosts = null;
			using (DB db = new DB ())
				hosts = db.GetHosts ();

			return new BuildBotsResponse {
				BuildBots = hosts.Select (h => new BuildBot {
					ID = h.id,
					Name = h.host,
					Arch = h.architecture,
					Description = h.description
				}).ToList ()
			};
		}
Esempio n. 2
0
        public object Any(BuildBots request)
        {
            List <DBHost> hosts = null;

            using (DB db = new DB())
                hosts = db.GetHosts();

            return(new BuildBotsResponse {
                BuildBots = hosts.Select(h => new BuildBot {
                    ID = h.id,
                    Name = h.host,
                    Arch = h.architecture,
                    Description = h.description
                }).ToList()
            });
        }