mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
18 lines
611 B
C#
18 lines
611 B
C#
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;
|
|
}
|
|
}
|
|
} |