Пример #1
0
        public SagaConfigurator(ISagaRepository <TSaga> sagaRepository, ISagaConfigurationObserver observer)
        {
            _sagaRepository = sagaRepository;

            _specification = SagaConnectorCache <TSaga> .Connector.CreateSagaSpecification <TSaga>();

            _specification.ConnectSagaConfigurationObserver(observer);
        }
        public StateMachineSagaConfigurator(SagaStateMachine <TInstance> stateMachine, ISagaRepository <TInstance> repository,
                                            ISagaConfigurationObserver observer)
        {
            _stateMachine = stateMachine;
            _repository   = repository;

            _connector = new StateMachineConnector <TInstance>(_stateMachine);

            _specification = _connector.CreateSagaSpecification <TInstance>();

            _specification.ConnectSagaConfigurationObserver(observer);
        }
Пример #3
0
 public ConnectHandle ConnectSagaConfigurationObserver(ISagaConfigurationObserver observer)
 {
     return(_sagaObservers.Connect(observer));
 }
 public ConnectHandle ConnectSagaConfigurationObserver(ISagaConfigurationObserver observer)
 {
     return(_busEndpointConfiguration.Consume.Configurator.ConnectSagaConfigurationObserver(observer));
 }
Пример #5
0
 public ConnectHandle ConnectSagaConfigurationObserver(ISagaConfigurationObserver observer)
 {
     return(_configurator.ConnectSagaConfigurationObserver(observer));
 }
 public ConnectHandle ConnectSagaConfigurationObserver(ISagaConfigurationObserver observer)
 {
     return(_specification.ConnectSagaConfigurationObserver(observer));
 }