Пример #1
0
        private void Handle( EnumerateFiles message )
        {
            m_sw.Start();
            fileCount = 0;

            var multiplePatterns = message.Extension.Split( ',' );
            foreach ( string extension in multiplePatterns )
            {
                EnumerateFiles( Sender, message.Folders, extension );
            }

            m_sw.Stop();
            Sender.Tell( new Done( fileCount, m_sw.Elapsed ) );
            m_sw.Reset();
        }
Пример #2
0
 private void Handle( EnumerateFiles msg )
 {
     validator.Tell( new ValidateArgs( msg.Folders, msg.Extension ) );
 }