public void Add(ScanState state)
 {
     lock (this.syncLock)
     {
         if (this.Owner == null)
         {
             this.Owner = new DuplicationOwner {
                 Owner = state.DataFile, ScanId = state.DataFile.ScanId
             };
         }
         else
         {
             this.Owner.DuplicateFiles.Add(new DuplicateFile()
             {
                 ScanId = state.DataFile.ScanId, DataFile = state.DataFile
             });
         }
     }
 }
 public void Add(ScanState state)
 {
     lock (this.syncLock)
     {
         if (this.Owner == null)
         {
             this.Owner = new DuplicationOwner { Owner = state.DataFile, ScanId = state.DataFile.ScanId };
         }
         else
         {
             this.Owner.DuplicateFiles.Add(new DuplicateFile() { ScanId = state.DataFile.ScanId, DataFile = state.DataFile });
         }
     }
 }