Copied to clipboard

Flag this post as spam?

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


  • Bor 7 posts 97 karma points
    Dec 21, 2021 @ 14:53
    Bor
    0

    Using scoped service in a ContentFinder

    I have Content Finder (IContentFinder) for displaying product page. From that Content Finder I'm trying to access a service registered as scoped.

    When I run the site this error is thrown:

    An error occurred while starting the application. AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: ProductPageContentFinder Lifetime: Singleton ImplementationType: ProductPageContentFinder': Cannot consume scoped service 'IShopItemHelperService' from singleton 'ProductPageContentFinder'.)

    How can I acess Scoped services inside ContentFinder?

Please Sign in or register to post replies

Write your reply to:

Draft