ActivEarth.Server.Service.Competition.ContestManager.CleanUp C# (CSharp) Метод

CleanUp() публичный статический Метод

Cleans up the contest list, deactivating expired time-based contests and deleting deactivated contests that have reached the end of their retainment period.
public static CleanUp ( ) : void
Результат void
        public static void CleanUp()
        {
            foreach (Contest contest in ContestDAO.GetActiveContests(false, false))
            {
                if (contest.EndTime <= DateTime.Now)
                {
                    ContestManager.DistributeContestReward(contest.ID);
                }
            }

            ContestDAO.RemoveOldContests();
        }