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(); } } }
public static LiftChangeReport DetermineChanges(TextReader original, TextReader modified, IProgress progress) { LiftChangeReport detector = new LiftChangeReport(); detector.ComputeDiff(original, modified, progress); return(detector); }
public static LiftChangeReport DetermineChanges(TextReader original, TextReader modified, IProgress progress) { LiftChangeReport detector = new LiftChangeReport(); detector.ComputeDiff(original, modified, progress); return detector; }