Skip to content

Conversation

@scrodde
Copy link
Contributor

@scrodde scrodde commented Jan 22, 2026

Fixes #2057

In SagaChain.cs, the constructor for sticky endpoints was adding the handler to the Handlers list twice:

  1. Implicitly via base(handlerCall, handlerGraph) which calls Handlers.Add(call) in the base HandlerChain constructor
  2. Explicitly on line 64 with Handlers.Add(handlerCall)

This caused the handler to appear twice in code generation, resulting in the saga's Handle() method being called twice in the generated code.

@scrodde scrodde changed the title Saga separated handler called twice Fix: #2057 Saga handler called twice with MultipleHandlerBehavior.Separated Jan 22, 2026
@jeremydmiller
Copy link
Member

Doh. Good catch.

@jeremydmiller jeremydmiller merged commit 1402051 into JasperFx:main Jan 22, 2026
1 check passed
This was referenced Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Saga handler called twice with MultipleHandlerBehavior.Separated

2 participants