mirror of https://github.com/abpframework/abp.git
10 changed files with 46 additions and 35 deletions
@ -1,14 +1,21 @@ |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Microsoft.Extensions.DependencyInjection.Extensions; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.Reflection; |
|||
|
|||
namespace Volo.Abp.Internal |
|||
{ |
|||
internal static class InternalServiceCollectionExtensions |
|||
{ |
|||
internal static void AddCoreAbpServices(this IServiceCollection services) |
|||
internal static void AddCoreAbpServices(this IServiceCollection services, IAbpApplication abpApplication) |
|||
{ |
|||
services.TryAddSingleton<IModuleLoader>(new ModuleLoader()); |
|||
var moduleLoader = new ModuleLoader(); |
|||
var assemblyFinder = new AssemblyFinder(abpApplication); |
|||
var typeFinder = new TypeFinder(assemblyFinder); |
|||
|
|||
services.TryAddSingleton<IModuleLoader>(moduleLoader); |
|||
services.TryAddSingleton<IAssemblyFinder>(assemblyFinder); |
|||
services.TryAddSingleton<ITypeFinder>(typeFinder); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue