Skip to content

Replay of result from injected service in Orchestrator function #2464

Closed Answered by ltouro
FFranz93 asked this question in Q&A
Discussion options

You must be logged in to vote

I see. Can't you use the instance ID for your logger in that case?

Anyway, you can do your best to hide the CallActivityAsync method from the orchestration code, but if you want to rely on the replay behavior, it will have to be somewhere in the implementation.

Maybe you could use objects like proxies to hide this implementation detail and make the code look more like any other C# code. For that, you would need to hook the orchestration context instance in the DI container so you could pull it out in each proxy implementation as a scoped dependency (not sure it is possible currently).

However, since the coding constraints for Durable orchestration are so important, do your best to make ac…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@FFranz93
Comment options

@ltouro
Comment options

Answer selected by FFranz93
@FFranz93
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants