.NET Blog

Free. Cross-platform. Open source. A developer platform for building all your apps.

Use Dependency Injection In WebForms Application

Dependency Injection design pattern is widely used in modern applications.  It decouples objects to the extent that no client code needs to be changed simply because an object it depends changes to a different one.  It brings you a lot of benefits, like reduced dependency, more reusable code, more testable code, etc.  in the past, it was ...

Modern ASP.NET Web Forms Development – Dependency Injection

(image) We’ve all read various ‘best practices’ posts about this framework and that framework from expert developers in the community.  They’ll cover topics regarding how to make your application more maintainable and how to drive down the risk of maintenance in your applications.  A common design recommendation is to structure your ...

Dependency Injection in ASP.NET Core

In a recent Community Standup, one of the questions that was asked of the team was: "How do I get started with Dependency Injection in ASP.NET Core?"  This is where we're going to answer your question, because in this post we're going to share how dependency injection is used in ASP.NET Core and how you can configure it to meet your needs. A...

Dependency Injection in ASP.NET vNext

Dependency Injection (DI) is a software design pattern, a particular case of the Inversion of Control pattern, in which one or more dependencies are injected into dependent objects. The pattern is used to create program designs that are loosely coupled and testable. This article assumes that you are already familiar with DI. If not, you can ...