Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

IOrderRepositoryCallback running on main thread ?

Vote:
 

hi,

I'm trying to handle the OrderEvent to do some other tasks with expectation running on other thread. firtly I think it is not running on the main thread then I tried with example SiteOrderRepositoryCallback as link below

http://world.episerver.com/documentation/developer-guides/commerce/orders/order-events/

but it seems that running on the main thread, therefore other next actions are in waiting for this.

so do we have any way to make it can run on other thread ?

Thanks & Regards,

Trung.vu

#178720
May 19, 2017 6:10
Vote:
 

Hi,

No, I don't think there is a way to run it on "another thread" - it is to make sure the listeners will get OnUpdating even before data operation happens, and OnUpdated after that. However, you can make your implementation async, if you want to.

#178758
May 20, 2017 19:24
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.