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>(); }
void IContainerRegistrar.RegisterSagaDefinition <TDefinition, TSaga1>() { _registrar.RegisterSagaDefinition <TDefinition, TSaga1>(); }
public void Register(IContainerRegistrar registrar) { registrar.RegisterSagaDefinition <TDefinition, TSaga>(); }