mirror of
https://github.com/farcasclaudiu/PracticeCalendar.git
synced 2026-06-22 07:01:16 +03:00
19 lines
513 B
C#
19 lines
513 B
C#
using MapsterMapper;
|
|
using MediatR;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using System.Reflection;
|
|
|
|
namespace PracticeCalendar.Application
|
|
{
|
|
public static class ConfigureServices
|
|
{
|
|
public static IServiceCollection AddApplicationServices(this IServiceCollection services)
|
|
{
|
|
services.AddSingleton<IMapper>(new Mapper(new Mapster.TypeAdapterConfig()));
|
|
services.AddMediatR(Assembly.GetExecutingAssembly());
|
|
|
|
return services;
|
|
}
|
|
}
|
|
}
|