Created
April 25, 2026 12:25
-
-
Save wullemsb/fab77ed0d5adf26aa7686ee8f7cf32b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Fresh instance per resolution | |
| services.AddKeyedTransient<MyWorkflow>("my-workflow"); | |
| // New object every call | |
| var wf = sp.GetRequiredKeyedService<MyWorkflow>("my-workflow"); | |
| await env.RunAsync(wf, input, sessionId); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment