mirror of https://github.com/abpframework/abp
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							21 lines
						
					
					
						
							552 B
						
					
					
				
			
		
		
	
	
							21 lines
						
					
					
						
							552 B
						
					
					
				| using System;
 | |
| using System.Linq;
 | |
| using JetBrains.Annotations;
 | |
| 
 | |
| namespace Volo.Abp.Modularity.PlugIns
 | |
| {
 | |
|     public static class PlugInSourceExtensions
 | |
|     {
 | |
|         [NotNull]
 | |
|         public static Type[] GetModulesWithAllDependencies([NotNull] this IPlugInSource plugInSource)
 | |
|         {
 | |
|             Check.NotNull(plugInSource, nameof(plugInSource));
 | |
| 
 | |
|             return plugInSource
 | |
|                 .GetModules()
 | |
|                 .SelectMany(AbpModuleHelper.FindAllModuleTypes)
 | |
|                 .Distinct()
 | |
|                 .ToArray();
 | |
|         }
 | |
|     }
 | |
| } |