Most developers have used Dependency Injection with ASP.NET MVC and ASP.NET Web API, but it has typically been difficult to set up Dependency Injection with an IoC (Inversion of Control) container.
Well, now Microsoft is offering guidance on how to set up Dependency Injection with an IoC container such as AutoFac for use within your ASP.NET Web Forms applications: https://blogs.msdn.microsoft.com/webdev/2016/10/19/modern-asp-net-web-forms-development-dependency-injection/
While using Dependency Injection in an ASP.NET Web Forms does not remove all of the problems typically associated with developing ASP.NET Web Forms applications, but it does go a long way to reduce the code dependencies found in Code Behind files and makes the overall code base that much cleaner!
Well, now Microsoft is offering guidance on how to set up Dependency Injection with an IoC container such as AutoFac for use within your ASP.NET Web Forms applications: https://blogs.msdn.microsoft.com/webdev/2016/10/19/modern-asp-net-web-forms-development-dependency-injection/
While using Dependency Injection in an ASP.NET Web Forms does not remove all of the problems typically associated with developing ASP.NET Web Forms applications, but it does go a long way to reduce the code dependencies found in Code Behind files and makes the overall code base that much cleaner!
I'm learning ASP.NET nowadays as I have seen that many MNC have been hiring people with the certification of Microsoft technology. Thanks for sharing the information about the dependency injection, this is a new topic to me.
ReplyDeleteBest Regards,
Crish Watson
Pass Microsoft Certification Without Taking Exam