Example #1
0
        private static string GetResultMessage(Dictionary <string, int> entryStatistics, Stopwatch timer)
        {
            var          entries = entryStatistics.Aggregate(string.Empty, (current, pair) => current + string.Format("Added '{0}' entries for '{1}'<br />", pair.Value, pair.Key));
            const string message = "Server: {0}<br />{1}in {2}";

            return(string.Format(message, Environment.MachineName, entries, timer.ToElapsedTimeString()));
        }
 private static string GetResultMessage(Dictionary<string, int> entryStatistics, Stopwatch timer)
 {
     var entries = entryStatistics.Aggregate(string.Empty, (current, pair) => current + string.Format("Added '{0}' entries for '{1}'<br />", pair.Value, pair.Key));
     const string message = "Server: {0}<br />{1}in {2}";
     return string.Format(message, Environment.MachineName, entries, timer.ToElapsedTimeString());
 }