| 123456789101112131415161718192021222324252627282930313233 |
- using AutoMapper;
- using Microsoft.Extensions.DependencyInjection;
-
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace MVCTemplate.Business.Infrastructure.Extensions
- {
- public class StartupExtensions
- {
- public static void ConfigureServices(IServiceCollection services)
- {
- Data.Extensions.StartupExtensions.ConfigureServices(services);
-
-
- // TODO: add all missing services
-
- var mapperConfiguration = new MapperConfiguration(mc =>
- {
- mc.AddProfile(new MapperProfile());
- });
-
- IMapper mapper = mapperConfiguration.CreateMapper();
- services.AddSingleton(mapper);
-
- //services.AddLocalization(options => options.ResourcesPath = "Infrastructure/Resources");
-
- }
- }
- }
|