// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IServiceProvider serviceProvider, IncidentContext incidentContext) { LoggingStartup.AddLogging(env, loggerFactory, serviceProvider, _configuration); app.AddMiddleware(env, _configuration); AutoMapperStartup.InitializeAutomapper(); if (_env.IsDevelopment()) { SeedType seedType = _configuration["seedDataType"] == "manyEvents" ? SeedType.ManyEvents : SeedType.Basic; SeedData.Add(incidentContext, seedType); } }
public void ConfigureAutomapper() => AutoMapperStartup.InitializeAutomapper();