0
votes

Is there a way to test whether an Azure Durable Functions Activity Function exists other than calling context.CallActivityAsync and catching an exception? I'd like to have graceful "not yet implemented" functionality and I'd like to check this before the code is ready to actually use the Activity Function.

1
I want to know why you have this need? Why is there a situation where a non-existent activity trigger is used? - Cindy Pau

1 Answers

0
votes

If you are using the latest version of the extension (2.2.2 at the time of writing this answer), we have added a Durable Functions analyzer to the extension, meaning we now provide compile time warnings if you try to call an Activity Function that does not exist. The Durable Task analyzer should also provide many other compile time guarantees to make sure you are not violating any orchestration rules.