mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(directory): 📦 add Automapper
This commit is contained in:
parent
a1f9287325
commit
42664f43e4
2 changed files with 4 additions and 1 deletions
|
|
@ -25,6 +25,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.0.1" />
|
||||
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="8.1.0" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using FilterLists.Directory.Infrastructure;
|
||||
using AutoMapper;
|
||||
using FilterLists.Directory.Infrastructure;
|
||||
using MediatR;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
|
@ -10,6 +11,7 @@ public static class ServiceCollectionExtension
|
|||
public static void AddApplicationServices(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
||||
services.AddMediatR(typeof(ServiceCollectionExtension).Assembly);
|
||||
services.AddAutoMapper(typeof(ServiceCollectionExtension));
|
||||
services.AddInfrastructureServices(configuration);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue