In one of my projects, I'm using multiple repositories, one of them Umbraco content cache. While I imagine this is a good way to keep the website loosely integrated with Umbraco, I'm stuck with one problem: injecting UmbracoContext.ContentCache down to the repository from the controller, because UmbracoContext.ContentCache is available only in the page request lifecycle. Has anybody tried to do this? Or it seems like a bad approach? I'm using Autofac for DI.
Autofac - injecting UmbracoContext.ContentCache
In one of my projects, I'm using multiple repositories, one of them Umbraco content cache. While I imagine this is a good way to keep the website loosely integrated with Umbraco, I'm stuck with one problem: injecting UmbracoContext.ContentCache down to the repository from the controller, because UmbracoContext.ContentCache is available only in the page request lifecycle. Has anybody tried to do this? Or it seems like a bad approach? I'm using Autofac for DI.
is working on a reply...