Skip to content

Commit

Permalink
Changed Service Lifetime of RunTaskDispatcher
Browse files Browse the repository at this point in the history
Following the guide for external application integration from the documentation an exceptions happens from the RunTask activity.

Changing the lifetime to scoped resolved this
  • Loading branch information
Yop Spanjers committed Jan 8, 2024
1 parent 0c6d5fe commit 6e7e9d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public override void Apply()
.AddScoped(WorkflowExecutionLogStore)
.AddScoped(ActivityExecutionLogStore)
.AddScoped(WorkflowInboxStore)
.AddSingleton(RunTaskDispatcher)
.AddScoped(RunTaskDispatcher)
.AddSingleton(BackgroundActivityScheduler)
.AddScoped<IBookmarkManager, DefaultBookmarkManager>()
.AddScoped<IActivityExecutionManager, DefaultActivityExecutionManager>()
Expand Down

0 comments on commit 6e7e9d5

Please sign in to comment.