AI OnAI Off
Happened to stumble across this blog post http://epiwiki.se/developing/core-functionality/ioc-container which includes the use of the attribute ModuleDependency. If I add this to my DependencyResolverInitialization-class it seems to work so maybe this is the solution to mine and other's similar problems?
Had a feeling that this problem had something to do with in what order things are initialized but didn't know how to solve this and I am still curious about why Alloy works without this attribute while our solution doesn't.
/Martin
Hello,
We're trying to incorporate an adapted ContentAreaRenderer inspired by the Alloy-project but can't get it to work in our project. Seems like we're experiencing the same problem as mentioned in this forum post (http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=114967) but we'd very muck like to avoid having to create a new project to get this to work. I've made some research and believe this has something to do with StructureMap but need your help to figure out why it's behaving the way it is.
Like in the Alloy project we register our version of the ContentAreaRenderer like this:
If I run the following code in a controller in both Alloy and in our project I see differences that might explain the problem but I don't know how to solve it:
This gives the following result in Alloy:
And the following result in our project:
Any ideas or suggestions regarding taking this further is greatly appreciated!!
Best regards
Martin