Пример #1
0
        /// <summary>
        /// Checks an ARIS recording for known problems (usually corruption).
        /// </summary>
        /// <param name="path">The path of the ARIS recording.</param>
        /// <returns>The result of the check, if successful.</returns>
        public static Result <FileCheckResult, ErrorInfo> CheckFileForProblems(string path)
        {
            CheckString(path, nameof(path));

            using (var stream = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.Read))
            {
                return(Details.CheckFileForProblems(path, stream));
            }
        }