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…
Thoughts and ideas about architecture and programming
There is some discussion about whether loggers should get injected into your classes (dependency injection) or if you should use the logger facade (like…
(This article has been rewritten since it didn’t seem like I managed to communicate my thoughts properly)
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…
I’ve just added a new feature to Griffin.Container: Support for resolving all implementations of a service by using constructors.
I’ve written a new article which guides you through most of the features in Griffin.Container.
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…
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.
(I started writing this blog entry on Friday night, but somehow I didn’t manage to finish it.)
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…
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…