コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: WhatDoIHaveWriter.cs プロジェクト: tmpreston/lamar
        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);
        }