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?
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/107874-using-scoped-service-in-a-contentfinder