Post-Migration Cleanup & Optimization#

Duration: 3–4 weeks. Depends on: All domain phases cut over.

Tasks#

  • Remove old .NET Framework code (manexcloud/**, src/Manex.BLL, src/Manex.DAL).
  • Remove <Compile Remove> exclusions from src/Manex.Data/Manex.Data.csproj — every folder should be either fully rehabilitated or deleted by this point.
  • Optimize EF Core queries — profile hot paths, add indexes.
  • Tighten security policies:
    • Remove FeatureFlags:UseLegacyPasswordHash.
    • Remove HS256 fallback signing key — HS256 or RS256 via KMS only.
    • Tighten CORS to production origins only.
  • Update Directory.Build.props — turn on stricter analyzers (AnalysisMode=All).
  • Refresh training materials and internal docs.
  • Final regression testing pass.

Exit criteria#

  • Legacy trees deleted; solution has zero <Compile Remove> blocks.
  • All Phase 0 stubs (rehash-on-login placeholder, empty roles/permissions arrays) replaced with real implementations.
  • Perf targets published for each API family.
  • On-call runbook covers the new system exclusively.