Tags » Inversion Of Control

Disposable Instances Series

In the past few weeks I have published a set of four posts that deal with disposable instances. These posts describe in detail a working implementation that automatically disposes all the instances that are no longer needed, in a deterministic way. 301 more words

Technical

Context driven dependency injection

Further to the previous post, object creation based on the current context is a cross cutting concern, so it should be dragged outside the core business logic. 701 more words

.net

Inversion of Control C#

Това е начин за писане на код, който е по-лесен за тестване.
По-подробна информация можете да намерите ТУК и ТУК.

Използването на интерфейси спомага за по-голямата необвързаност на обектите с даден клас и се приема за по-добра практика.Например: 54 more words

High Quality Code

Why Autofac is Awesome.

And I mean “awesome” with an “awe”.

Autofac allows you to create true façades.

Consider this trivial interface, for printing things,

namespace IoCExample
{
    public interface IPrinter
    {
        void Print (string text);
    }
}
… 392 more words
Programming

Unity - Mixing Configuration and Convention

So, it looks like we may be reversing our previous decision to use simple factories instead of an IoC container and introducing Unity back in to our project.   291 more words

Unity

Dependency Injection without an IoC Container

Over the last couple of days we’ve been implementing repository and domain objects for a specific piece of business functionality and, so that everything is nicely decoupled and testable, we’ve been applying the dependency injection pattern but consciously deferred the decision of how we were going to do the wire up. 959 more words

Dependency Injection