Exemplo n.º 1
0
 public SagaCoordinator(ISagaSeeker seeker, ISagaInitializer initializer, ISagaProcessor processor,
                        ISagaPostProcessor postProcessor)
 {
     _seeker        = seeker;
     _initializer   = initializer;
     _processor     = processor;
     _postProcessor = postProcessor;
 }
Exemplo n.º 2
0
 public SagaOrchestrator(ISagaPersister sagaPersister,
                         ISagaInitializer sagaInitializer,
                         ISagaOptionsProvider sagaOptionsProvider,
                         IBrokeredMessageDispatcher brokeredMessageDispatcher)
 {
     _sagaPersister             = sagaPersister ?? throw new ArgumentNullException(nameof(sagaPersister));
     _sagaInitializer           = sagaInitializer ?? throw new ArgumentNullException(nameof(sagaInitializer));
     _sagaOptionsProvider       = sagaOptionsProvider ?? throw new ArgumentNullException(nameof(sagaOptionsProvider));
     _brokeredMessageDispatcher = brokeredMessageDispatcher ?? throw new ArgumentNullException(nameof(brokeredMessageDispatcher));
 }