Esempio n. 1
0
        private static void ReportProcessCompleted([NotNull] IProcessingFeedback feedback,
                                                   [NotNull] IGdbProcess process,
                                                   TimeSpan duration)
        {
            var sb = new StringBuilder();

            string what = process is IGroupGdbProcess ? "Process Group" : "GdbProcess";

            sb.AppendFormat("{0} '{1}' completed in ", what, process.Name);
            sb.AppendDuration(duration);

            feedback.ReportInfo(sb.ToString());
        }
Esempio n. 2
0
        private static void ReportProcessStarting([NotNull] IProcessingFeedback feedback,
                                                  [NotNull] IGdbProcess process,
                                                  int current, int total)
        {
            var sb = new StringBuilder();

            sb.Append("Executing ");
            sb.Append(process is IGroupGdbProcess ? "Process Group" : "GdbProcess");
            sb.AppendFormat(" '{0}'", process.Name);

            if (total > 1 && 0 < current && current <= total)
            {
                sb.AppendFormat(" ({0} of {1})", current, total);
            }

            feedback.ReportInfo(sb.ToString());
        }