Description
All configuration (DI registration, authentication, EF Core, AutoMapper) is in a single Program.cs file with no extension methods to organize service registration. As the application grows, this will become increasingly difficult to maintain.
Affected Files
Suggested Fix
Create extension methods to organize registration:
AddDatabaseServices()
AddAuthenticationServices()
AddApplicationServices()
Place these in a Extensions/ or Configuration/ folder.
Severity: Low
Description
All configuration (DI registration, authentication, EF Core, AutoMapper) is in a single
Program.csfile with no extension methods to organize service registration. As the application grows, this will become increasingly difficult to maintain.Affected Files
Program.csSuggested Fix
Create extension methods to organize registration:
AddDatabaseServices()AddAuthenticationServices()AddApplicationServices()Place these in a
Extensions/orConfiguration/folder.Severity: Low