Skip to content

Commit

Permalink
Access the parent activity for the saga context
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrandt committed Oct 11, 2023
1 parent cd68ac6 commit 21633e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private static async Task<ObservedMessageContexts> ExecuteAndWait<TMessageContex
break;
case NsbActivityNames.InvokeHandlerActivityName:
var handlerContext = activitySource.GetTagItem("testing.invoke.handler.context") as IInvokeHandlerContext;
var handlerContext = activitySource.Parent.GetTagItem("testing.invoke.handler.context") as IInvokeHandlerContext;
invokeHandlerContexts.Add(handlerContext);
Expand Down

0 comments on commit 21633e8

Please sign in to comment.