public CorrelatedByEventCorrelationBuilder(SagaStateMachine <TInstance> machine, Event <TData> @event)
        {
            var configurator = new MassTransitEventCorrelationConfigurator <TInstance, TData>(machine, @event, null);

            configurator.CorrelateById(x => x.Message.CorrelationId);

            _configurator = configurator;
        }
        public MessageCorrelationIdEventCorrelationBuilder(SagaStateMachine <TInstance> machine, Event <TData> @event,
                                                           IMessageCorrelationId <TData> messageCorrelationId)
        {
            var configurator = new MassTransitEventCorrelationConfigurator <TInstance, TData>(machine, @event, null);

            configurator.CorrelateById(x => messageCorrelationId.TryGetCorrelationId(x.Message, out var correlationId)
                ? correlationId
                : throw new ArgumentException($"The message {TypeMetadataCache<TData>.ShortName} did not have a correlationId"));

            _configurator = configurator;
        }