Tags » Inversion Of Control

How to create a new instance of a dependency inject object

I decided to write this post after seeing it done wrong on a number of occasions and also not finding many great examples of how it should be done. 324 more words

Web Development

Castle Windsor: Change Lifestyle

In my current project, we use Castle Winsdor for Dependency Injection. I must admit before this project I had never used or even heard of it. 243 more words

.NET

Understanding Dependency Injection and Inversion of Control

Inversion of control (IoC) and dependency injection (DI) can be quite confusing at first.  I remember particularly struggling to figure out when exactly I should use DI\IOC, a question I’m sure most people have asked.  2,384 more words

Dev

.NET Core and IoC

If you are concerned about decoupling your code, then you know that IoC can help you with this.

Maybe you had used castle before, or even ninject, but did you know that .NET core comes with a basic implementation of IoC? 393 more words

Tip

Inversion of Control

Introduction

The following post is an excerpt of the sites cited under more reading section below.

When you have a class that uses methods or access properties of other objects it is easy to instantiate an object you need in the class and access those methods or properties but it is making the code coupled and hard to read, test and maintain. 467 more words

Decoupling

Asp.net Core 1.1 Dependency Injection VS 2017

Dependency Injection is an important pattern, one of the five SOLID principles of software engineering.

Traditionally procedural programming takes control from the start of the execution and use a lot of conditional statements to execute the exact configurations that the system is tuned for. 943 more words

Asp.net Mvc

Implementation of Dependency Injection Pattern in C#

Dependency Injection (DI) is a software design pattern that allow us to develop loosely coupled code. DI is a great way to reduce tight coupling between software components. 566 more words

C#