Exemplo n.º 1
0
        public void Compute()
        {
            log.Info("Getting all users");
            var users = DatabaseAccess.DatabaseUsers.GetAllUsers();
            foreach (var user in users)
            {
                var model = (SVNModel)user.ExtensionPoint["SVNExtension"];
                if (!user.ExperiencePoints.ContainsKey(typeof(SVNExperience).Name))
                {                    
                    user.ExperiencePoints.Add(typeof(SVNExperience).Name, null);
                }

                var exp = new SVNExperience(user.Name, ".\\Experience\\UserLevel.prop", "SVN");
                exp.AddModel(model);
                user.ExperiencePoints[typeof(SVNExperience).Name] = exp;
                log.InfoFormat("Updating user {0} in the database", user.Name);
                DBUtils.UpdateUser(user);
            }            
        }
Exemplo n.º 2
0
        public void Compute()
        {
            log.Info("Getting all users");
            var users = DatabaseAccess.DatabaseUsers.GetAllUsers();

            foreach (var user in users)
            {
                var model = (SVNModel)user.ExtensionPoint["SVNExtension"];
                if (!user.ExperiencePoints.ContainsKey(typeof(SVNExperience).Name))
                {
                    user.ExperiencePoints.Add(typeof(SVNExperience).Name, null);
                }

                var exp = new SVNExperience(user.Name, ".\\Experience\\UserLevel.prop", "SVN");
                exp.AddModel(model);
                user.ExperiencePoints[typeof(SVNExperience).Name] = exp;
                log.InfoFormat("Updating user {0} in the database", user.Name);
                DBUtils.UpdateUser(user);
            }
        }