Try our conversational search powered by Generative AI!

IOrderRepositoryCallback running on main thread ?



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

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,

May 19, 2017 6:10


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.

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.