I'm using Vendr/umbraco commerce and have a situation where the product data is not in umbraco. I've implemented a ProductAdapter to fetch the product data, however the pricing is customer specific so I need to get the current logged in user. Problem is the ProductAdapter is a singleton so a child scope is needed to use any scoped dependencies. IMemberManager being scoped, is not playing nice and loses the current context so it cannot see there is a logged in user.
Anyone else come across that issue or now how to persist authentication data to a child ioc container scope?
Updating a product's price in Vendr
Hi
I'm using Vendr/umbraco commerce and have a situation where the product data is not in umbraco. I've implemented a ProductAdapter to fetch the product data, however the pricing is customer specific so I need to get the current logged in user. Problem is the ProductAdapter is a singleton so a child scope is needed to use any scoped dependencies. IMemberManager being scoped, is not playing nice and loses the current context so it cannot see there is a logged in user.
Anyone else come across that issue or now how to persist authentication data to a child ioc container scope?
Thanks.
is working on a reply...