/// <summary> /// Returns a textual report of all the assembly scanners used to build up this Container /// </summary> /// <returns></returns> public string WhatDidIScan() { assertNotDisposed(); var scanners = Model.Scanners; if (!scanners.Any()) { return("No type scanning in this Container"); } var writer = new StringWriter(); writer.WriteLine("All Scanners"); writer.WriteLine("================================================================"); scanners.Each(scanner => { scanner.Describe(writer); writer.WriteLine(); writer.WriteLine(); }); var failed = TypeRepository.FailedAssemblies(); if (failed.Any()) { writer.WriteLine(); writer.WriteLine("Assemblies that failed in the call to Assembly.GetExportedTypes()"); failed.Each(assem => { writer.WriteLine("* " + assem.Record.Name); }); } else { writer.WriteLine("No problems were encountered in exporting types from Assemblies"); } return(writer.ToString()); }