void OnStatsRequested(RequestContext context, RequestArgs args) { _logger.LogDebug($"OnStatsRequested ({args.Count})"); var sb = new StringBuilder(); string buildName = args.Count > 0 ? args[0] : null; sb.Append(buildName == null ? "Stats:\n" : $"Stats ({buildName}):\n"); var table = new StatTable(); FormatStatHeader(table); AppendBuildStats(_container.Builds, buildName, table, buildName != null); table.Append(sb); _server.RaiseCommonMessage(context, sb.ToString()); }
void RaiseWarningByTimer(string taskName) { ForEachContextService(service => { _server.RaiseCommonMessage(service.Context, $"Task isn't completed, but time is exceeded: '{taskName}'!"); }); }