コード例 #1
0
        public ILiftChangeReport GetChangeReport(IProgress progress)
        {
            StreamReader reference = null;
            StreamReader working   = null;

            try
            {
                try
                {
                    reference = new StreamReader(PathToReferenceCopy);
                }
                catch (Exception error)
                {
                    throw new ApplicationException(
                              string.Format("Could not open LiftChangeDetector Reference file at {0}.  {1}",
                                            PathToReferenceCopy, error.Message));
                }

                working = new StreamReader(_pathToLift);

                return(LiftChangeReport.DetermineChanges(reference, working, progress));
            }
            finally
            {
                if (reference != null)
                {
                    reference.Dispose();
                }

                if (working != null)
                {
                    working.Dispose();
                }
            }
        }
コード例 #2
0
        public static LiftChangeReport DetermineChanges(TextReader original, TextReader modified, IProgress progress)
        {
            LiftChangeReport detector = new LiftChangeReport();

            detector.ComputeDiff(original, modified, progress);
            return(detector);
        }
コード例 #3
0
 public static LiftChangeReport DetermineChanges(TextReader original, TextReader modified, IProgress progress)
 {
     LiftChangeReport detector = new LiftChangeReport();
     detector.ComputeDiff(original, modified, progress);
     return detector;
 }