public void GenerateFlowDocuments()
        {
            ChangedFiles.AsParallel().ForAll(changedFile =>
            {
                SourceLogLogger.LogInformation("GeneratingFlowDocuments - File: " + changedFile.FileName);

                var diff = new SideBySideFlowDocumentDiffGenerator(changedFile.OldVersion, changedFile.NewVersion);
                changedFile.LeftFlowDocument  = diff.LeftDocument;
                changedFile.RightFlowDocument = diff.RightDocument;
                changedFile.FirstModifiedLineVerticalOffset = diff.FirstModifiedLineVerticalOffset;
            });
        }
Exemple #2
0
        public void GenerateFlowDocuments()
        {
            ChangedFiles.AsParallel().ForAll(changedFile =>
            {
                Logger.Write(new Microsoft.Practices.EnterpriseLibrary.Logging.LogEntry
                {
                    Message  = "GeneratingFlowDocuments - File: " + changedFile.FileName,
                    Severity = TraceEventType.Information
                });

                var diff = new SideBySideFlowDocumentDiffGenerator(changedFile.OldVersion, changedFile.NewVersion);
                changedFile.LeftFlowDocument  = diff.LeftDocument;
                changedFile.RightFlowDocument = diff.RightDocument;
                changedFile.FirstModifiedLineVerticalOffset = diff.FirstModifiedLineVerticalOffset;
            });
        }
        public void GenerateFlowDocuments()
        {
            ChangedFiles.AsParallel().ForAll(changedFile =>
            {
                SourceLogLogger.LogInformation("GeneratingFlowDocuments - File: " + changedFile.FileName);

                var diff = new SideBySideFlowDocumentDiffGenerator(changedFile.OldVersion, changedFile.NewVersion);
                changedFile.LeftFlowDocument = diff.LeftDocument;
                changedFile.RightFlowDocument = diff.RightDocument;
                changedFile.FirstModifiedLineVerticalOffset = diff.FirstModifiedLineVerticalOffset;
            });
        }
Exemple #4
0
        public void GenerateFlowDocuments()
        {
            ChangedFiles.AsParallel().ForAll(changedFile =>
            {
                Logger.Write(new Microsoft.Practices.EnterpriseLibrary.Logging.LogEntry
                {
                    Message = "GeneratingFlowDocuments - File: " + changedFile.FileName,
                    Severity = TraceEventType.Information
                });

                var diff = new SideBySideFlowDocumentDiffGenerator(changedFile.OldVersion, changedFile.NewVersion);
                changedFile.LeftFlowDocument = diff.LeftDocument;
                changedFile.RightFlowDocument = diff.RightDocument;
                changedFile.FirstModifiedLineVerticalOffset = diff.FirstModifiedLineVerticalOffset;
            });
        }