[Dnfbb-commits] SF.net SVN: dnfbb: [688] v2/wwwroot/Global.asax.cs
Brought to you by:
sbosanquet,
tectsoft
From: <sbo...@us...> - 2007-01-29 18:02:37
|
Revision: 688 http://svn.sourceforge.net/dnfbb/?rev=688&view=rev Author: sbosanquet Date: 2007-01-29 10:02:25 -0800 (Mon, 29 Jan 2007) Log Message: ----------- limited the size of the email history log to 50 entries. Every time the history log reaches 50 it is cleared a reset. This history log will probably be extended in the future. Modified Paths: -------------- v2/wwwroot/Global.asax.cs Modified: v2/wwwroot/Global.asax.cs =================================================================== --- v2/wwwroot/Global.asax.cs 2007-01-28 09:20:46 UTC (rev 687) +++ v2/wwwroot/Global.asax.cs 2007-01-29 18:02:25 UTC (rev 688) @@ -113,6 +113,7 @@ internal static ArrayList _emailServerHistory = new ArrayList(); internal static DateTime _emailLastSendTime; internal static Int64 _emailQueueSize = 0; + internal static int _emailMaxHistorySize = 50; #endregion @@ -751,7 +752,11 @@ statusReport = (EmailStatusReport)e.Result; if (statusReport.Count > 0) + { + if (_emailServerHistory.Count > _emailMaxHistorySize) + _emailServerHistory.Clear(); _emailServerHistory.Add(statusReport); + } _emailLastSendTime = DateTime.Now; @@ -812,7 +817,11 @@ _emailServerMesages = _emailClass.Send(); if (_emailServerMesages.Count > 0) + { + if (_emailServerHistory.Count > _emailMaxHistorySize) + _emailServerHistory.Clear(); _emailServerHistory.Add(_emailServerMesages); + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |