Exemplo n.º 1
0
        void ProjectFinished(object sender, ProjectFinishedEventArgs e)
        {
            AppendLine(string.Format("##ProjectFinished:{0}", e.Message.EscapeMarkdownCharacters()));

            if (IsVerbosityAtLeast(LoggerVerbosity.Detailed))
            {
                AppendLine(e.ToPropertyValues().ToMarkdownTable().ToMarkdown());
            }
        }
Exemplo n.º 2
0
        void ProjectFinished(object sender, ProjectFinishedEventArgs e)
        {
            AppendLine("#####Project Finished".ToMarkdownRawMarkdown());

            if (IsVerbosityAtLeast(LoggerVerbosity.Normal))
            {
                AppendLine(e.Message.ToMarkdownParagraph());
            }

            if (IsVerbosityAtLeast(LoggerVerbosity.Detailed))
            {
                AppendLine(e.ToPropertyValues().ToMarkdownTable());
            }

            if (IsVerbosityAtLeast(LoggerVerbosity.Diagnostic))
            {
                //e.it
            }

            var           startInfo = _projectsStarted.Pop();
            var           execInfo  = new ExecutionInfo(e.ProjectFile, startInfo, e);
            ExecutionInfo prevExecInfo;

            this._projectsExecutedMap.TryGetValue(e.ProjectFile, out prevExecInfo);
            if (prevExecInfo != null)
            {
                // shouldn't be found for projects but we can handle in either case
                execInfo.TimeSpent = execInfo.TimeSpent.Add(prevExecInfo.TimeSpent);

                var projToRemove = (from p in _projectsExecuted
                                    where p.Name.Equals(execInfo.Name)
                                    select p).ToList();

                foreach (var p in projToRemove)
                {
                    _projectsExecuted.Remove(p);
                }
            }

            _projectsExecutedMap[execInfo.Name] = execInfo;
            _projectsExecuted.Add(execInfo);
        }