Пример #1
0
 public FileCompareStatsVerifiedLength(IFileCompareStats stats, DateTime lastVerified)
 {
     if (stats == null)
     {
         throw new ArgumentNullException("stats");
     }
     _md5     = new FileMD5StatsVerifiedLength(stats, lastVerified);
     _groupID = stats.GroupID;
 }
 public FileCompareStatusReverified(FileCompareStatsVerifiedMD5 stats, DateTime lastValidated)
 {
     _md5 = new FileMD5StatsVerifiedLength(stats, lastValidated);
     if (_md5.LastCalculatedUTC.Equals(stats.LastCompared))
     {
         throw new InvalidOperationException("Calculated date must differ from verified and compared dates");
     }
     _lastCompared = stats.LastCompared;
     _groupID      = stats.GroupID;
 }
 public FileCompareStatusReverified(FileMD5StatsVerifiedLength stats, Guid groupID, DateTime lastCompared)
 {
     _lastCompared = FileStats.NormalizeDateTime(lastCompared);
     if (stats.LastCalculatedUTC.Equals(_lastCompared))
     {
         throw new InvalidOperationException("Calculated date must differ from verified and compared dates");
     }
     _md5     = stats;
     _groupID = groupID;
 }
 public FileCompareStatusReverified(long length, DateTime lastVerified, byte[] checksum, DateTime lastCalculated, Guid groupID, DateTime lastCompared)
 {
     _md5          = new FileMD5StatsVerifiedLength(length, lastVerified, checksum, lastCalculated);
     _lastCompared = FileStats.NormalizeDateTime(lastCompared);
     if (_md5.LastCalculatedUTC.Equals(_lastCompared))
     {
         throw new InvalidOperationException("Calculated date must differ from verified and compared dates");
     }
     _groupID = groupID;
 }
Пример #5
0
 public FileCompareStatsVerifiedLength(FileMD5StatsVerifiedLength stats, Guid groupID)
 {
     _md5     = stats;
     _groupID = groupID;
 }
Пример #6
0
 public FileCompareStatsVerifiedLength(long length, DateTime lastVerified, byte[] checksum, Guid groupID, DateTime lastCompared)
 {
     _md5     = new FileMD5StatsVerifiedLength(length, lastVerified, checksum, lastCompared);
     _groupID = groupID;
 }