I believe I conteptually understand what's goind on in Azure Durable Functions. You have to start an Orchestration Function where you can await Activities. When an activity is completed, the Orchestration Function starts from the top, but since the activity now has a result, the result is used instead of invoking it again.
This means the Orchestration Functions 'goes to sleep'. I've been looking into the source of both the Azure Durable Functions and Durable Task Framework on GitHub, but I can't quite find the actual lines of code that impact the callback of the awaited tasks.
Can anyone point me in the right direction?
Thanks!