Hi guys,
very simple question,
I had a static helper class that provides for me the Content References for some of the most used pages in the solution.
Then other developer said, let' not use it but create an interface and class implementation with ServiceConfiguration attrubute. And later on use it as a constructor injection to get the instance.
As far as I understand there is nothing wrong in the static helper class when i am not referencing none of the shared variables.. which in my case should not as I only get the references to the instances of the pages..
Where the approach with the dependency injection seems to me an overkill..
In any way, just would like to hear the opinions of fellow EpiServer developers on this subject. Thank you
By the way, why Injected<T> is anti-pattern?