Copied to clipboard

Flag this post as spam?

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


  • Alexandru Rustin 7 posts 87 karma points
    Jul 07, 2022 @ 15:54
    Alexandru Rustin
    0

    LightInject container set as DependencyResolver.Current

    Hello.

    Can anyone point me to the place where DependencyResolver.Current is set in umbraco?

    Do note I did search the github codebase for it but I could not find any information, maybe I missed something.

    When resolving an instance using DependencyResolver.Current.GetService<instance>(); I saw the container behind it is the umbraco lightinject container where we have all the types registered.

    I'm just trying to understand where do you guys set the dependencyResolver to this umbraco container. Hope it makes sense.

    Thank you for the help!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies