Umbraco Commerce - async Product Adapter?
b
Hello, I am working with Umbraco Commerce and need to implement a custom
ProductAdapter
. Inside the custom product adapter I need to call some async code and have come across the age old issue - the
GetProductSnapshot(...)
method that I need to override is not async. Currently I am faced with trying to work around this and call the async code in a synchronous way. I was wondering if there is a to get around this and make the method async? Or if there is a plan to provide a
ProductAdapterBase
with async methods to override? @Matt Brailsford @Matt Brailsford (HQ)
s
Best to send a message through support (chat bubble on https://umbraco.com) since HQ'ers only hang out here voluntarily - so please try not to ping people directly as it gives them notification overload. It looks like it's async is not currently supported for everything though, so maybe best to leave a feature request here: https://github.com/umbraco/Umbraco.Commerce.Issues/discussions
b
Hey Sebastiaan, thank you for that - and sorry for the pings, I will go through the proper channels!
For anyone interested, I have created the feature request here: https://github.com/umbraco/Umbraco.Commerce.Issues/discussions/527
14 Views