public LibraryExport GetAllExports(string name, string aspect) { var internalExports = _libraryExporter.GetAllExports(name, aspect); return(new LibraryExportWrapper(internalExports, AdditionalLibraryExportRegistrations.Select(x => x.Value).ToList())); }
public LibraryExport GetAllExports(string name, string aspect) { var internalExports = _libraryExporter.GetAllExports(name, aspect); return(new LibraryExport( internalExports.MetadataReferences.AsEnumerable().Concat(AdditionalLibraryExportRegistrations.SelectMany(x => x.Value.MetadataReferences)).ToList(), internalExports.SourceReferences.AsEnumerable().Concat(AdditionalLibraryExportRegistrations.SelectMany(x => x.Value.SourceReferences)).ToList() )); }
public LibraryExport GetExport(string name) { var export = _libraryExporter.GetExport(name); if (export != null) { return(export); } if (AdditionalLibraryExportRegistrations.Any(x => x.Key == name)) { return(AdditionalLibraryExportRegistrations.Single(x => x.Key == name).Value); } return(null); }