// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddControllers(options => options.Filters.Add(new HttpResponseExceptionFilter())); services.AddCors(); services.AddDbContext <EftHudDbContext>(options => { options.UseMySql( Configuration.GetConnectionString("DbContext"), x => x.MigrationsAssembly("EFT_Hud.DAL") .EnableRetryOnFailure(3)); }); RepositoriesInstaller.Install(services); ServiceInstaller(services); }
public static void Install(IServiceCollection services, IConfiguration configuration) { RepositoriesInstaller.Install(services); DomainInstallers.Install(services); ApplicationInstallers.Install(services); }