From: <br...@us...> - 2008-09-01 16:35:52
|
Revision: 347 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=347&view=rev Author: brus07 Date: 2008-09-01 16:36:03 +0000 (Mon, 01 Sep 2008) Log Message: ----------- Refactoring Modified Paths: -------------- ACMServer/trunk/ACMServer/Library/Data/DataMediator.cs ACMServer/trunk/ACMServer/Library/Data/SubmitList.cs Modified: ACMServer/trunk/ACMServer/Library/Data/DataMediator.cs =================================================================== --- ACMServer/trunk/ACMServer/Library/Data/DataMediator.cs 2008-09-01 16:29:35 UTC (rev 346) +++ ACMServer/trunk/ACMServer/Library/Data/DataMediator.cs 2008-09-01 16:36:03 UTC (rev 347) @@ -6,10 +6,20 @@ { public class DataMediator { - const int secondToLive = 60; + private int secondToLive = 60; - Dictionary<int, DateTime> d = new Dictionary<int, DateTime>(); + private Dictionary<int, DateTime> d = new Dictionary<int, DateTime>(); + public int SecondToLive + { + set + { + if (value < 0) + throw new ArgumentException("Can't be lower than zero (0).", "SecondToLive"); + secondToLive = value; + } + } + /// <summary> /// \xDF\xEA\xF9\xEE \xF1\xE0\xE1\xEC\xB3\xF2 \xF3 \xF7\xE5\xF0\xE7\xB3 \xE7\xED\xE0\xF5\xEE\xE4\xE8\xF2\xFC\xF1\xFF \xE1\xB3\xEB\xFC\xF8\xE5 \xED\xB3\xE6 secondToLive \xF1\xE5\xEA\xF3\xED\xE4, \xF2\xEE \xE2\xB3\xED \xEF\xF0\xEE\xF1\xF2\xEE \xE2\xE8\xE4\xE0\xEB\xFF\xBA\xF2\xFC\xF1\xFF \xE7 \xED\xE5\xBF /// </summary> Modified: ACMServer/trunk/ACMServer/Library/Data/SubmitList.cs =================================================================== --- ACMServer/trunk/ACMServer/Library/Data/SubmitList.cs 2008-09-01 16:29:35 UTC (rev 346) +++ ACMServer/trunk/ACMServer/Library/Data/SubmitList.cs 2008-09-01 16:36:03 UTC (rev 347) @@ -10,7 +10,7 @@ { ArrayList listSubmits; - private SubmitList() + public SubmitList() { listSubmits = new ArrayList(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |