| 1234567891011121314151617181920212223242526 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Reflection;
- namespace Abp.PlugIns
- {
- public class PlugInSourceList : List<IPlugInSource>
- {
- public List<Assembly> GetAllAssemblies()
- {
- return this
- .SelectMany(pluginSource => pluginSource.GetAssemblies())
- .Distinct()
- .ToList();
- }
- public List<Type> GetAllModules()
- {
- return this
- .SelectMany(pluginSource => pluginSource.GetModulesWithAllDependencies())
- .Distinct()
- .ToList();
- }
- }
- }
|