Skip to content
Discussion options

You must be logged in to vote

I've found a solution, though I don't understand why it works:

I was instantiating my WorkflowExecutionUtility object like this before:

var syncWorkflowExecUtility = new SynchronousWorkflowExecutionUtility(workflowHost, new SingleNodeEventHub(host.Services.GetService<ILoggerFactory>());

Now, I instantiate SingleNodeEventHub prior to the Utility, and use it as a construction param:

var hub = host!.Services.GetService<ILifeCycleEventHub>() as SingleNodeEventHub;
var syncWorkflowExecUtility = new SynchronousWorkflowExecutionUtility(workflowHost, hub!);

I'm still unsure as to why / how this works, but maybe anyone else with these issue can use this solution 👍

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by christopher-watanabe-snkeos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant