コード例 #1
0
        // Token: 0x06001D18 RID: 7448 RVA: 0x00082A44 File Offset: 0x00080C44
        public static long HighestGenerationInDirectory(DirectoryInfo di, string prefix, string suffix)
        {
            long result = 0L;

            using (EseLogEnumerator eseLogEnumerator = new EseLogEnumerator(di, prefix, suffix))
            {
                string text = eseLogEnumerator.FindHighestGenerationLogFile();
                if (!string.IsNullOrEmpty(text))
                {
                    ShipControl.GetGenerationNumberFromFilename(Path.GetFileName(text), prefix, out result);
                }
            }
            return(result);
        }
コード例 #2
0
        // Token: 0x06001D17 RID: 7447 RVA: 0x000829F8 File Offset: 0x00080BF8
        public static long LowestGenerationInDirectory(DirectoryInfo di, string prefix, string suffix, bool ignoreDirectoryMissing = false)
        {
            long result = 0L;

            if (ignoreDirectoryMissing && !di.Exists)
            {
                return(0L);
            }
            using (EseLogEnumerator eseLogEnumerator = new EseLogEnumerator(di, prefix, suffix))
            {
                result = eseLogEnumerator.FindLowestGeneration();
            }
            return(result);
        }