Пример #1
0
 public SagaStateService(ISagaStateFactory <TD> sagaStateFactory,
                         ISagaStateRepository sagaStateRepository,
                         IOutboxRepository outboxRepository)
 {
     _sagaStateFactory    = sagaStateFactory ?? throw new ArgumentNullException(nameof(sagaStateFactory));
     _sagaStateRepository = sagaStateRepository ?? throw new ArgumentNullException(nameof(sagaStateRepository));
     _outboxRepository    = outboxRepository ?? throw new ArgumentNullException(nameof(outboxRepository));
 }
Пример #2
0
 public SagaStateService(ISagaStateFactory <TD> sagaStateFactory, ISagaStateRepository uow)
 {
     _sagaStateFactory    = sagaStateFactory ?? throw new ArgumentNullException(nameof(sagaStateFactory));
     _sagaStateRepository = uow ?? throw new ArgumentNullException(nameof(uow));
 }