Component evidence

Saga Event Correlation Builder (Configuration/CorrelatedByEventCorrelationBuilder.cs)

MassTransit · src/MassTransit/SagaStateMachine/Configuration/CorrelatedByEventCorrelationBuilder.cs · csharp · Apache-2.0
automationchattag:sagatag:statemachinetag:correlation

Configures event correlation for state machine sagas based on message IDs. Use this to link incoming events to existing saga instances.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/MassTransit/MassTransit | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
namespace MassTransit.Configuration
{
    using System;


    public class CorrelatedByEventCorrelationBuilder<TInstance, TData> :
        IEventCorrelationBuilder
        where TData : class, CorrelatedBy<Guid>
        where TInstance : class, SagaStateMachineInstance
    {
        readonly StateMachineInterfaceType<TInstance, TData>.MassTransitEventCorrelationConfigurator _configurator;

        public CorrelatedByEventCorrelationBuilder(SagaStateMachine<TInstance> machine, Event<TData> @event)
        {
            var configurator = new StateMachineInterfaceType<TInstance, TDa

... (truncated -- full source via MCP)