public void Handle(CompletedFile message)
 {
     IncrementMessagesReceived();
     fileProcessed++;
     ReportedFile reportedFileMsg = new ReportedFile(message.FileName, message.ElapsedMilliseconds, message.Author, fileProcessed);
     Context.Parent.Tell(reportedFileMsg);
     CrawlingFinished();
 }
 private void Handle(ReportedFile msg)
 {
     IncrementMessagesReceived();
     _vm.AddItem.OnNext(new ResultItem()
     {
         FileNumber = msg.FileNumber,
         FilePath = msg.FileName,
         DirectoryPath = System.IO.Path.GetDirectoryName(msg.FileName),
         FileName = System.IO.Path.GetFileName(msg.FileName),
         DocumentAuthor = msg.Author,
         ElapsedMs = msg.ElapsedMilliseconds
     });
 }