Large projects often scan assemblies repeatedly.
✅ Fix
Disable automatic scanning where possible and register explicitly:
services.AddScoped<IService, Service>();
Why
Reflection is slow at startup — especially in containers.
Daily micro-tips for C#, SQL, performance, and scalable backend engineering.
Large projects often scan assemblies repeatedly.
Disable automatic scanning where possible and register explicitly:
services.AddScoped<IService, Service>();
Why
Reflection is slow at startup — especially in containers.