mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
1st working version in clean arch
WIP Parent group mapping issues
This commit is contained in:
18
ModernKeePass/DependencyInjection.cs
Normal file
18
ModernKeePass/DependencyInjection.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Reflection;
|
||||
using AutoMapper;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace ModernKeePass
|
||||
{
|
||||
public static class DependencyInjection
|
||||
{
|
||||
public static IServiceCollection AddAppAutomapper(this IServiceCollection services)
|
||||
{
|
||||
var applicationAssembly = typeof(Application.DependencyInjection).GetTypeInfo().Assembly;
|
||||
var infrastructureAssembly = typeof(Infrastructure.DependencyInjection).GetTypeInfo().Assembly;
|
||||
services.AddAutoMapper(applicationAssembly, infrastructureAssembly);
|
||||
|
||||
return services;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user