Exemple #1
0
        static void Main(string[] args)
        {
            //DebugLogger.EnableLogging = true;



            String          pfolder = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);
            AsyncFileFinder aff     = new AsyncFileFinder(pfolder, "*.exe", null, null, false);

            aff.AsyncFileFound        += aff_AsyncFileFound;
            aff.AsyncFileFindComplete += aff_AsyncFileFindComplete;
            aff.Start();

            Thread.Sleep(5000);
            {
                aff.Cancel();
            }



            Console.WriteLine("Found " + ItemCount + " Items.");
            Console.ReadKey();
        }
        public IAsyncEnumerable <string> FindSolutions(string rootDirectory)
        {
            var asyncFinder = new AsyncFileFinder();

            return(asyncFinder.Find(rootDirectory, "*.sln"));
        }