This project is read-only.

Why can't ILogger / Localizer not be constructor injected?

Topics: General
Aug 19, 2014 at 6:36 PM
Hi everyone!

Please be patient with me - I am an experienced developer with some MVC knowledge - at least I thought so until I stuck my nose into Orchard's source ;-)

So probably some of my questions (and there will be many I reckon) might be a little "basic".

Before I get on, I just want to say how very impressed I am with this project. All the best practises are used and technologies that I am very fond of.... I really like it a lot and I am very eager to get into it! Just wanted to tell you: Hats off to those of you who are responsible for the ideas and architecture - this really looks amazing!

Right now I am working though the very nicely done "Orchard Training Demo" module. Right at the beginning there is a mentioning of how ILogger can't be constructor injected. WIth Localizer it's the same.

Why is that? (as far as I know it's no problem to inject delegates...)? Is this a design decision? And if so - what's the reasoning behind it?