AI OnAI Off
The easiest way to get your dependency injection to work would probably to copy the StructureMapDependencyResolver and DependencyResolverInitialization class in the Alloy templates.
This is a similar thread:
http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=81514&epslanguage=en
Edit: Linked url text.
Hello and thank you!
I've just started up a new EPiServer project and I got stuck when I'm in the controller (mvc) creating a constructor that looks like this:
public StartPageController(ContentLocator contentLocator, IContentLoader contentLoader)
{
this._contentLoader = contentLoader;
this.contentLocator = contentLocator;
}
I have two variables for these that is private readonly in the class...However..
If I create a parameterless constructor under the contentLocator constructor it works but my values get null ofcourse ._.
Any ideas?