Hi Team,
I am migrating asp.net web application 4.5 framework project to .net core 3.1 so what would be architecture do i need to follow please find my observation below
1> Do i need to register all services in ConfigureServices below as I have many services
publicvoid ConfigureServices(IServiceCollection services) {services.AddDbContext<TodoContext>(opt => opt.UseInMemoryDatabase("TodoList"));services.AddControllers(); }
2>Do I need to write all function inside Configure
publicvoid Configure(IApplicationBuilder app, IWebHostEnvironment env) {if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }