Пример #1
0
        public LibraryExport GetAllExports(string name, string aspect)
        {
            var internalExports = _libraryExporter.GetAllExports(name, aspect);

            return(new LibraryExportWrapper(internalExports,
                                            AdditionalLibraryExportRegistrations.Select(x => x.Value).ToList()));
        }
Пример #2
0
        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()
                       ));
        }
Пример #3
0
        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);
        }