Try our conversational search powered by Generative AI!

IOC Container 'EnrichAllWith' not recognize after EPiServer 9 upgrade

Dan
Dan
Vote:
 

I do have sort of smiler implementation that "Patrick van Kleef" has described in his blog : http://www.patrickvankleef.com/2015/02/13/force-a-page-to-display-in-a-specific-language-dynamically/
But after EPiServer 9 upgrade i'm getting an exception for flowing code

container.For().EnrichAllWith(y => new MyUpdateCurrentLanguage());


Exception:

"CreatePluginFamilyExpression does not contain a definition for 'EnrichAllWith' and no extension method 'EnrichAllWith' accepting a first argument of type CreatePluginFamilyExpression could be found (are you missing a using directive or an assembly reference?)"

#140706
Oct 28, 2015 11:25
Vote:
 

Hi,

Our IOC Container uses structuremap internally. I think that was one of the breaking changes from Structuremap 3.0 in EPiServer 9. Instead of EnrichWithAll, you might want to use DecorateAllWith?

Regards,

/Q 

#140708
Oct 28, 2015 11:58
Dan
Vote:
 

OK Thanks Quan. I'll give a try

#140715
Oct 28, 2015 12:31
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.