November 2019
Intermediate to advanced
362 pages
7h 52m
English
The activity function is the unit work of a Durable Function. You can see an activity function as a standard Azure Function triggered by an orchestrator call.
An activity function is marked with the ActivityTrigger attribute:
[FunctionName(FunctionNames.AddOrderFunction)]public static async Task<bool> Run([ActivityTrigger] Order order, [Table(SourceNames.OrdersTable, Connection = "StorageAccount")] CloudTable giftTable, ILogger log){ // Function code}
The binding payload for the ActivityTrigger attribute is the entity that you use in the orchestrator function when you start it using CallActivityAsync or CallActivityWithRetryAsync.
If you want, you can use the DurablaActivityContext class as binding and retrieve the object ...