private void writeSummary(IEnumerable <IServiceFamilyConfiguration> serviceTypes, StringWriter writer) { var reportWriter = new TextReportWriter(5); reportWriter.AddDivider('='); reportWriter.AddText("ServiceType", "Namespace", "Lifecycle", "Description", "Name"); serviceTypes.Where(x => x.Instances.Any()).OrderBy(x => x.ServiceType.Name) .Each(svc => writeServiceType(svc, reportWriter)); reportWriter.AddDivider('='); reportWriter.Write(writer); }
private void writeContentsOfServiceTypes(IEnumerable <IServiceFamilyConfiguration> serviceTypes) { _writer = new TextReportWriter(5); _instances = new List <Instance>(); _writer.AddDivider('='); _writer.AddText("ServiceType", "Namespace", "Lifecycle", "Description", "Name"); serviceTypes.Where(x => x.Instances.Any()).OrderBy(x => x.ServiceType.Name).Each(writeServiceType); _writer.AddDivider('='); _writer.Write(_stringWriter); }