private string toCombinationReport(AssetDiagnosticRequest request, Func <AssetFile, string> description) { var plan = _contentPlanCache.PlanFor(request.Name); if (plan == null) { return("Not found"); } var writer = new StringWriter(); plan.GetAllSources().SelectMany(x => x.Files).Each(x => writer.WriteLine(description(x))); return(writer.ToString()); }
private string toCombinationReport(AssetDiagnosticRequest request, Func<AssetFile, string> description) { var plan = _contentPlanCache.PlanFor(request.Name); if (plan == null) { return "Not found"; } var writer = new StringWriter(); plan.GetAllSources().SelectMany(x => x.Files).Each(x => writer.WriteLine(description(x))); return writer.ToString(); }