private void Handle( DirectoryToSearchMessage message )
 {
     IncrementMessagesReceived();
     fileCount = 0;
     m_sw.Start();
     EnumerateFiles( Sender, message.Directory, message.SearchPattern );
     m_sw.Stop();
     Sender.Tell( new DoneEnumeratingFiles( fileCount, m_sw.Elapsed ) );
     m_sw.Reset();
     Context.Stop( Self );
 }
Esempio n. 2
0
        public void Handle( DirectoryToSearchMessage message )
        {
            IncrementMessagesReceived();
            fileno = 0;
            fileProcessed = 0;
            filesCrawled = 0;
            CrawlingDone = false;

            m_sw.Start();
            var EnumeratorActor = Context.ActorOf( FileEnumeratorActor.GetProps() );
            EnumeratorActor.Tell( message );
        }