コード例 #1
0
        private static void ReportFirstProcessedMovieMetric()
        {
            var reader         = new FolderReader();
            var processedMovie = reader.ReadAllProcessedMovies().First();

            Console.WriteLine(processedMovie.Metric);
        }
コード例 #2
0
        private static void ReadAllFilesAtOnce()
        {
            var reader = new FolderReader();

            foreach (var file in reader.ReadAllFiles())
            {
                Console.WriteLine(file.Length.ToString());
            }
        }
コード例 #3
0
        private static void ReportAllProcessedMovieMetrics()
        {
            var reader = new FolderReader();

            foreach (var processedMovie in reader.ReadAllProcessedMovies())
            {
                Console.WriteLine(processedMovie.Metric);
            }
        }
コード例 #4
0
        private static void ProcessThreeMovies()
        {
            var reader = new FolderReader();

            foreach (var movie in reader.ReadThreeMovies())
            {
                // Process movie
            }
        }
コード例 #5
0
        private static void FindCorrectMovie()
        {
            var reader = new FolderReader();

            foreach (var movie in reader.ReadAllMovies())
            {
                if (movie.MovieNumber == 3)
                {
                    // Process movie
                    break;
                }
            }
        }
コード例 #6
0
 private static void MaterializeAllMovies()
 {
     var reader    = new FolderReader();
     var allMovies = reader.ReadAllMovies().ToList();
 }
コード例 #7
0
 private static void ProcessFirstMovie()
 {
     var reader = new FolderReader();
     var movie  = reader.ReadAllMovies().First();
     // Process movie
 }