Replaced all DateTime.MinValue with Constants.DateTimeLow
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using Swarmops.Common;
|
||||
using Swarmops.Logic.Support;
|
||||
|
||||
namespace Swarmops.Utility.BotCode
|
||||
@@ -11,7 +12,7 @@ namespace Swarmops.Utility.BotCode
|
||||
private static readonly object lockObject = new object();
|
||||
|
||||
private bool FlagRestartRequested;
|
||||
private DateTime lastBeat = DateTime.MinValue;
|
||||
private DateTime lastBeat = Constants.DateTimeLow;
|
||||
private string lastFilename = "";
|
||||
|
||||
public bool WasKilled
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace Swarmops.Utility.BotCode
|
||||
RssReader reader = new RssReader(readerFeedUrl);
|
||||
People recipients = null;
|
||||
|
||||
DateTime highWaterMark = DateTime.MinValue;
|
||||
DateTime highWaterMark = Constants.DateTimeLow;
|
||||
string persistenceKey = "Newsletter-Highwater-" + personId.ToString();
|
||||
|
||||
string highWaterMarkString = Persistence.Key[persistenceKey];
|
||||
@@ -66,7 +66,7 @@ namespace Swarmops.Utility.BotCode
|
||||
}
|
||||
catch (FormatException)
|
||||
{
|
||||
highWaterMark = DateTime.MinValue;
|
||||
highWaterMark = Constants.DateTimeLow;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using NRss;
|
||||
using Swarmops.Common;
|
||||
using Swarmops.Common.Enums;
|
||||
using Swarmops.Logic.Communications;
|
||||
using Swarmops.Logic.Media;
|
||||
@@ -30,7 +31,7 @@ namespace Swarmops.Utility.BotCode
|
||||
{
|
||||
string persistenceKey = String.Format ("Pressrelease-Highwater-{0}", persistAsKey);
|
||||
|
||||
DateTime highWaterMark = DateTime.MinValue;
|
||||
DateTime highWaterMark = Constants.DateTimeLow;
|
||||
|
||||
RssReader reader = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user