Component evidence

Saga Activity Binder (Binders/IActivityBinder.cs)

MassTransit · src/MassTransit/SagaStateMachine/SagaStateMachine/Binders/IActivityBinder.cs · csharp · Apache-2.0
integrationautomationtag:masstransittag:sagatag:activitytag:binder

Defines binding of activities to events and states in a MassTransit saga state machine. Use when implementing custom saga behavior with event-driven state transitions.

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.SagaStateMachine
{
    public interface IActivityBinder<TSaga>
        where TSaga : class, SagaStateMachineInstance
    {
        Event Event { get; }

        /// <summary>
        /// Returns True if the event is a state transition event (enter/leave/afterLeave/beforeEnter)
        /// for the specified state.
        /// </summary>
        /// <param name="state"></param>
        /// <returns></returns>
        bool IsStateTransitionEvent(State state);

        /// <summary>
        /// Binds the activity to the state, may also just ignore the event if it

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