Esempio n. 1
0
        public IEnumerable <ServerReport> GetServerRates()
        {
            var servers = Db.FindAll <GameServer>();

            return(servers.Select(server => new ServerReport
            {
                Name = server.Info.Name,
                Endpoint = server.Endpoint,
                AverageMatchesPerDay = GetCountMatchesPerDay(server.Endpoint).Average()
            }));
        }