Skip to content

Monolithic Program.cs - no service registration organization #30

@al2devph

Description

@al2devph

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

  • Program.cs

Suggested Fix

Create extension methods to organize registration:

  • AddDatabaseServices()
  • AddAuthenticationServices()
  • AddApplicationServices()
    Place these in a Extensions/ or Configuration/ folder.

Severity: Low

Metadata

Metadata

Assignees

No one assigned

    Labels

    architecturalStructural and design issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions