Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Premkumar 5 posts 75 karma points
    Mar 04, 2016 @ 16:07
    Premkumar
    0

    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. enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft