.NET 4.7.2 to .NET 9: How a Medical Imaging Platform Cut Costs by 65%

65%

Lower Infrastructure Costs

9 Months

vs. 18-Month Manual Estimate

80%

Test Coverage from Under 30%

A mission-critical medical ultrasound imaging and reporting platform serving healthcare practices and imaging centers was running on a .NET Framework 4.7.2 single-tenant monolith with 800,000+ lines of code, 3 to 5 second page loads, 60% manual administrative overhead, and infrastructure costs 300% higher than a multi-tenant model.Legacyleap delivered Gen AI-assisted code comprehension across the full estate, modular refactoring of 26+ controllers and 400+ models, a full frontend rebuild from AngularJS to React 18, and a multi-tenant architecture on .NET 9 with secure tenant isolation.Outcome: 65% lower infrastructure costs, 40% faster performance, 50% fewer manual processes, test coverage from under 30% to 80%, delivered in 9 months against an 18-month manual estimate.

Results at a Glance

MetricResult
Infrastructure cost reduction65% through multi-tenant consolidation
Manual processes eliminated50% reduction
Application performance improvement40% faster
Test coverageUnder 30% to 80%
Delivery timeline9 months vs. 18-month manual estimate

Engagement Snapshot

IndustryHealthcare Technology / Medical Imaging
LocationUnited States
Legacy stack.NET Framework 4.7.2 / AngularJS 1.8.3 / Entity Framework 6.4.4 / Crystal Reports
Target stack.NET 9 Core / React 18 / TypeScript 5.8 / EF Core / Auth0
Codebase800,000+ lines of code across 26+ controllers, 400+ models, 15+ modules
Services4+ VB background services for HL7 EMR integrations (Epic, Cerner, Athenahealth, NextGen)
ComplianceHIPAA · PHI data handling · DICOM imaging workflows
Delivery modelGen AI-assisted comprehension, modular refactoring, multi-tenant redesign
Timeline9 months (vs. 18-month manual estimate)

About the Client

The client operates a comprehensive medical ultrasound imaging and reporting platform serving medical practices and imaging centers across US healthcare enterprises. The platform underpins patient management, DICOM imaging, clinical reporting via Crystal Reports, administration, and multi-method authentication, with HL7 EMR integrations connecting to Epic, Cerner, Athenahealth, NextGen, Criterions, and eClinicalWorks. Downtime directly impacts patient diagnostics, reporting SLAs, and compliance requirements.

Following M&A activity, the platform’s single-tenant architecture had become a structural cost problem: each customer required dedicated infrastructure, dedicated databases, and separate deployment pipelines, creating linear cost growth with every new client onboarded.

Challenge

The modernization required resolving three compounding categories of debt simultaneously, on a live clinical platform where any disruption to patient workflows was not acceptable.

Single-Tenant Architecture Creating 300% Infrastructure Cost Overhead

Every customer instance ran on dedicated infrastructure , separate databases, separate deployments, separate maintenance pipelines. Average server capacity waste sat at 40%. Infrastructure costs ran 300% higher than a comparable multi-tenant model. With M&A growth plans in place, the cost structure was unsustainable: onboarding new clients meant linear cost multiplication, not scale.

.NET Framework 4.7.2 Monolith Blocking Performance and Scale

The 800,000+ line monolith had no path to horizontal scaling. Page loads ran 3 to 5 seconds. Database query timeouts occurred under load. Memory leaks affected long-running sessions. 60% of administrative tasks required manual intervention. AngularJS 1.8.3, jQuery, DevExtreme, and Bootstrap 3.3.7 on the frontend were all end-of-life, with no component reuse and no responsive design. Test coverage sat below 30%.

No Viable Manual Rewrite Path

The estate complexity , 26+ controllers, 400+ Entity Framework models, 15+ modules, 4+ VB background services, Crystal Reports workflows, DICOM imaging pipelines, and HL7 integrations with six major EMR systems , made a conventional rewrite high-risk and slow. Manual estimates placed a full rewrite at 18 months with multi-team involvement, and high operational risk given the clinical criticality of the workflows being touched.

How Legacyleap Executed the Modernization

The engagement ran as four sequenced workstreams , each with continuity safeguards to protect live clinical operations throughout.

Phase 1: Gen AI-Assisted Codebase Comprehension 

Legacyleap’s AI agents analyzed all 800,000+ lines, mapping module boundaries, controller dependencies, tenant coupling points, stored procedure logic, and EOL library risks across the full estate. A multi-tenant refactoring blueprint and module-by-module migration sequence were produced before any code was changed.

Phase 2: Backend Modernization to .NET 9 

The monolith was refactored module by module to .NET 9 Core with domain-driven design and multi-tenant architecture. Entity Framework 6.4.4 was upgraded to EF Core with query optimizations. Auth0 with JWT tokens replaced custom AD authentication. Serilog structured logging replaced NLog. OpenTelemetry with Prometheus metrics added observability. RESTful APIs with OpenAPI documentation were built for all modules. All four VB background services managing HL7 integrations were preserved and modernized.

Phase 3: Frontend Rebuild: AngularJS to React 18 

The full frontend was rebuilt in React 18 with TypeScript 5.8, Material-UI, React Query, and React Hook Form. Vite replaced Webpack. Auth0 React SDK integrated for frontend authentication. All clinical workflows , DICOM imaging, image annotation, clinical reporting, and administration , were rebuilt with full functional parity. Crystal Reports workflows were preserved; delivery layer refreshed via modern APIs.

Phase 4: Quality Gates and Deployment 

Test coverage was expanded from under 30% to 80% using Vitest with React Testing Library. Automated CI/CD pipelines replaced manual per-tenant deployments, reducing deployment and maintenance overhead by 80%. OpenTelemetry monitoring and disaster recovery processes are established across all tenant environments.

Technology Evolution

LayerBeforeAfter
Framework.NET Framework 4.7.2.NET 9 Core
ArchitectureSingle-tenant monolithMulti-tenant modular with tenant isolation
FrontendAngularJS 1.8.3 + jQuery + DevExtremeReact 18 + TypeScript 5.8 + Material-UI
AuthenticationCustom AD integrationAuth0 with JWT
ORMEntity Framework 6.4.4Entity Framework Core
ReportingCrystal ReportsAPI-driven (workflows preserved)
LoggingNLogSerilog structured logging
MonitoringMinimalOpenTelemetry + Prometheus
TestingUnder 30% coverage80% via Vitest
Build toolsMSBuild + WebpackVite
InfrastructurePer-tenant deploymentsShared multi-tenant, automated CI/CD

Results

MetricBeforeAfter
Infrastructure costsSingle-tenant baseline65% lower
Manual administrative processes60% of tasks manual50% reduction
Application performance3 to 5 second page loads40% faster
Test coverageUnder 30%80%
Deployment overheadManual per-tenant80% reduction via automated CI/CD
Delivery timeline18-month manual estimate9 months with Legacyleap

Details

Industry

HealthTech

LOCATION

United States

Challenge

Modernize a .NET 4.7.2 single-tenant monolith with 800,000+ lines of code and 300% infrastructure cost overhead, without disrupting live clinical workflows.

Featured Services

Legacyleap

Why Legacyleap

Legacyleap's Gen AI-powered comprehension mapped 800,000+ lines across 26+ controllers, 400+ models, and 15+ modules before a single line was refactored. A structured 4-phase execution rebuilt the platform on .NET 9 with multi-tenant architecture, replaced AngularJS with React 18, modernized all four VB background services, and expanded test coverage from under 30% to 80%. Infrastructure costs down 65%. Performance up 40%. Delivered in 9 months against an 18-month manual estimate.

Modernizing a .NET Framework platform in a regulated healthcare environment? Get a $0 assessment.

Legacyleap maps every module, every integration, and every clinical workflow risk before a single line is changed.

No sensitive data leaves your firewall.

Test Legacyleap for Free!

Modernizing a .NET Framework platform in a regulated healthcare environment? Get a $0 assessment.

Legacyleap maps every module, every integration, and every clinical workflow risk before a single line is changed.

What You'll Receive:

Legacyleap platform with code analysis, dependency visualization, and modernization summary.

Frequently Asked Questions

Didn't find what you were looking for?

Legacyleap starts with Gen AI-assisted comprehension across the full codebase , mapping every module boundary, every stored procedure dependency, and every integration touchpoint before any refactoring begins. For this engagement, that meant analyzing 800,000+ lines across 26+ controllers, 400+ models, and 15+ modules, and producing a complete refactoring blueprint before a single line was changed. The backend modernization then proceeds module by module, with functional parity validated at each step. Critical workflows , DICOM imaging, Crystal Reports, and HL7 EMR integrations , were preserved throughout, with continuity safeguards at every phase boundary.

The core challenge is identifying and decoupling all tenant-specific coupling points before redesigning for shared infrastructure. Legacyleap maps these systematically during the comprehension phase, then applies domain-driven design and secure tenant data separation during refactoring. For this client, that meant moving from a model where every customer required dedicated infrastructure and separate deployment pipelines, to a shared multi-tenant architecture with isolated tenant data, reducing infrastructure costs by 65% and eliminating the linear cost growth that came with each new client onboarded.

The time compression comes from Gen AI automation at the comprehension and refactoring stages. Manual modernization at this scale requires teams to read, understand, and rewrite 800,000+ lines of code , a process that takes months before any output exists. Legacyleap automates the comprehension layer and generates refactored module structures, reducing the time engineers spend on analysis and initial scaffolding. The remaining work , clinical workflow validation, integration testing, UI rebuild, and quality gates , still requires engineering judgment, but on a foundation that was built in weeks rather than months.

Integration preservation is treated as a hard constraint from day one, not a post-migration concern. During the comprehension phase, all HL7 integration logic , across Epic, Cerner, Athenahealth, NextGen, Criterions, and eClinicalWorks , is mapped and documented before any services are touched. The four VB background services managing inbound and outbound HL7 processing were modernized in place, maintaining their integration contracts throughout. DICOM imaging pipelines and Crystal Reports workflows were similarly preserved with functional parity, with delivery layers refreshed via modern APIs rather than replaced.

A manual rewrite at this scale , 800,000+ lines, 15+ modules, 4+ VB services, multiple EMR integrations , was estimated at 18 months with multi-team involvement and high operational risk. Legacyleap delivered the same outcome in 9 months with a focused team, by automating the comprehension and initial scaffolding phases that consume the most calendar time in a manual approach. Beyond timeline, the Gen AI-assisted approach also reduces human error risk during the most complex translation work , the kind of risk that is especially significant on a platform where precision in medical calculations and clinical workflows is non-negotiable.

Technical Demo

Book a Technical Demo

Explore how Legacyleap’s Gen AI agents analyze, refactor, and modernize your legacy applications, at unparalleled velocity.

Watch how Legacyleap’s Gen AI agents modernize legacy apps ~50-70% faster

Want an Application Modernization Cost Estimate?

Get a detailed and personalized cost estimate based on your unique application portfolio and business goals.