示例#1
0
 public void Handle( CompletedFile message )
 {
     IncrementMessagesReceived();
     fileProcessed++;
     Context.Parent.Tell( message );
     CrawlingFinished();
 }
 private void Handle( CompletedFile msg )
 {
     IncrementMessagesReceived();
     m_vm.AddItem.OnNext( new ResultItem()
     {
         FilePath = msg.FileName,
         DirectoryPath = Path.GetDirectoryName( msg.FileName ),
         FileName = Path.GetFileName( msg.FileName ),
         TotalWords = msg.WordsInFile,
         TotalLines = msg.LinesInFile,
         ElapsedMs = msg.ElapsedMilliseconds
     } );
 }