Posts about IoC

When is a logger a dependency?

There is some discussion about whether loggers should get injected into your classes (dependency injection) or if you should use the logger facade (like…

Service locator is not an anti pattern

(This article has been rewritten since it didn’t seem like I managed to communicate my thoughts properly)

Griffin.Container: Register services using your own attribute

As you might know, I recommend that you register most classes using the [Component] attribute. However, you might not want to add an external dependency to…

Resolving all services through dependency injection in Griffin.Container

I’ve just added a new feature to Griffin.Container: Support for resolving all implementations of a service by using constructors.

New article: Having fun with Griffin.Container

I’ve written a new article which guides you through most of the features in Griffin.Container.

Griffin.Container: Introducing the command support

Commands are a great way to decouple logic in an application, since the command invoker has no knowledge of where the command is handled. You also move the…

Get injected into the world of inverted dependencies

I’ve just written a new article on CodeProject. It’s an introduction to Inversion Of Control containers and Dependency Injection. It can be found here.

Griffin.Container – “The drunken IoC container”

(I started writing this blog entry on Friday night, but somehow I didn’t manage to finish it.)

Inversion of control containers – Best practices

Disclaimer: I’ve used IoC containers for a couple of years now and also made a couple of my own (just to learn, nothing released). I’ve also consumed loads of…

Autofac, starting components

Some of my components need to be started after all of them have been created. This is quite easy to solve with Autofac. The components simply implement this…