Exemple #1
0
        static void CheckBlockTableFiles(string baseDir)
        {
            Console.WriteLine("Checking Block Table Files '{0}'", baseDir);

            RazorCache cache = new RazorCache();
            foreach (string file in Directory.GetFiles(baseDir, "*.sbt", SearchOption.TopDirectoryOnly)) {
                var fileparts = Path.GetFileNameWithoutExtension(file).Split('-');
                int level = int.Parse(fileparts[0]);
                int version = int.Parse(fileparts[1]);

                Console.WriteLine("Level: {0} Version: {1}", level, version);

                var tablefile = new SortedBlockTable(cache, baseDir, level, version);
                try {
                    tablefile.ScanCheck();
                } finally {
                    tablefile.Close();
                }
            }
        }
Exemple #2
0
        static void CheckBlockTableFiles(string baseDir)
        {
            Console.WriteLine("Checking Block Table Files '{0}'", baseDir);

            RazorCache cache = new RazorCache();

            foreach (string file in Directory.GetFiles(baseDir, "*.sbt", SearchOption.TopDirectoryOnly))
            {
                var fileparts = Path.GetFileNameWithoutExtension(file).Split('-');
                int level     = int.Parse(fileparts[0]);
                int version   = int.Parse(fileparts[1]);

                Console.WriteLine("Level: {0} Version: {1}", level, version);

                var tablefile = new SortedBlockTable(cache, baseDir, level, version);
                try {
                    tablefile.ScanCheck();
                } finally {
                    tablefile.Close();
                }
            }
        }