mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
21 lines
620 B
C#
21 lines
620 B
C#
![]() |
using System.Reflection;
|
|||
|
using AutoMapper;
|
|||
|
using FluentValidation;
|
|||
|
using MediatR;
|
|||
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
|
|||
|
namespace ModernKeePass.Application
|
|||
|
{
|
|||
|
public static class DependencyInjection
|
|||
|
{
|
|||
|
public static IServiceCollection AddApplication(this IServiceCollection services)
|
|||
|
{
|
|||
|
var assembly = typeof(DependencyInjection).GetTypeInfo().Assembly;
|
|||
|
services.AddAutoMapper(assembly);
|
|||
|
services.AddMediatR(assembly);
|
|||
|
//services.AddValidatorsFromAssembly(Assembly.GetExecutingAssembly());
|
|||
|
|
|||
|
return services;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|