示例#1
0
 public SagaCoordinatorTests()
 {
     _sagaLog         = Substitute.For <ISagaLog>();
     _repository      = Substitute.For <ISagaDataRepository>();
     _sagaSeeker      = Substitute.For <ISagaSeeker>();
     _saga            = Substitute.For <CustomSaga>();
     _sagaCoordinator = new SagaCoordinator(_sagaLog, _repository, _sagaSeeker);
 }
示例#2
0
 public SagaCoordinator(
     ISagaLog log,
     ISagaStateRepository repository,
     ISagaSeeker seeker)
 {
     _log        = log;
     _repository = repository;
     _seeker     = seeker;
 }
示例#3
0
 public SagaCoordinator(
     ISagaLog sagaLog,
     ISagaDataRepository repository,
     ISagaSeeker sagaSeeker)
 {
     _sagaLog    = sagaLog;
     _repository = repository;
     _sagaSeeker = sagaSeeker;
 }
示例#4
0
 public ExperimentWithMethodsHandler(
     ISagaCoordinator sagaCoordinator, ISagaLog sagaLogData,
     IKafkaProducer kafkaProducer, IConfiguration configuration)
 {
     _sagaCoordinator  = sagaCoordinator;
     _kafkaProducer    = kafkaProducer;
     Configuration     = configuration;
     EXPERIMENTS_TOPIC = Configuration["ExperimentsTopic"];
     METHODS_TOPIC     = Configuration["MethodsTopic"];
     SagaLogData       = sagaLogData;
 }
示例#5
0
 public SagaPostProcessor(ISagaLog log)
 {
     _log = log;
 }
示例#6
0
 public SagaProcessor(ISagaStateRepository repository, ISagaLog log)
 {
     _repository = repository;
     _log        = log;
 }
示例#7
0
 public SagaProcessor(ISagaStateRepository repository, IChronicleConfiguration configuration, ISagaLog log)
 {
     _repository    = repository;
     _configuration = configuration;
     _log           = log;
 }