public ISagaRegistrationConfigurator <TSaga> Endpoint(Action <ISagaEndpointRegistrationConfigurator <TSaga> > configure)
        {
            var configurator = new SagaEndpointRegistrationConfigurator <TSaga>();

            configure?.Invoke(configurator);

            _configurator.AddEndpoint <SagaEndpointDefinition <TSaga>, TSaga>(configurator.Settings);

            return(this);
        }
Exemple #2
0
        public void Endpoint(Action <ISagaEndpointRegistrationConfigurator <TSaga> > configure)
        {
            var configurator = new SagaEndpointRegistrationConfigurator <TSaga>();

            configure?.Invoke(configurator);

            _configurator.AddEndpoint <SagaEndpointDefinition <TSaga>, TSaga>(configurator.Settings);

            _registrar.RegisterSagaDefinition <EndpointSagaDefinition <TSaga>, TSaga>();
        }