Skip to content

Saga handler with cascading message breaks code generation with MultipleHandlerBehavior.Separated #2058

@scrodde

Description

@scrodde

Describe the bug
When a saga handler returns a cascading message and MultipleHandlerBehavior.Separated is enabled, code generation fails.

To Reproduce

See failing test main...scrodde:wolverine:saga-cascading-messagaes-compiler-error

Expected behavior
Cascading messages from saga handlers should work with Separated mode.

Additional context

    public async Task Handle(ThingUpdated updated, IMessageContext context)
    {
        Updates++;
        Debug.WriteLine(context.Envelope.Destination);
        await context.PublishAsync(new AnotherThingHappened(), new()
        {
            SagaId = Id.ToString()
        });
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions