Is possible and a good practice to use the method GetStatusAsync inside an activity? #2649
Unanswered
BrunoCandia
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi, I know that is possible to get the status of the orchestration triggered by a service bus message.
I would like to know if the "GetStatusAsync" can be used inside an activity (injecting the "IDurableOrchestrationClient" through the constructor or passing it as a parameter to the activity) and if that is a good practice.
[FunctionName(nameof(ExecuteGetStatusActivity))] public async Task Run([ActivityTrigger] string serviceBusMessage, ILogger logger) { ... await _durableOrchestrationClient.GetStatusAsync("55a610c09809426da7bafdd24a292f55"); ... }
What is the advice on this?
Beta Was this translation helpful? Give feedback.
All reactions