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
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.
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