简体   繁体   中英

Can Azure Functions Durable Orchestrator call methods that aren't activity triggers?

I have some functionality in an azure durable function that requires the use of generic params. Since activity triggers don't support the use of generic params, I wrote the function as a non-async static method and called it directly from the orchestrator. I am not receiving an error, but I am seeing the warning Activity function named [myMethodName] does not exist. Did you mean [someActivityFunction]? Activity function named [myMethodName] does not exist. Did you mean [someActivityFunction]?

Does this imply that I should not call my static method from the orchestrator?

If I cannot use code isn't an activity trigger, how can I call a generic method within my durable function?

As per documentation here , Orchestrators either call Sub Orchestrators or ActivityTriggers, my workaround is have the other logicI wanted to perform inside an ActivityTrigger then use it from the Main Orchestrator.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM