public OrderStateOrchestrator(IPaymentServiceClient paymentServiceClient,
                               IDistributedLockManager distributedLockManager,
                               IOrderStateMachineFactory orderStateMachineFactory,
                               IShipmentServiceClient shipmentServiceClient)
 {
     _distributedLockManager   = distributedLockManager;
     _orderStateMachineFactory = orderStateMachineFactory;
     _shipmentServiceClient    = shipmentServiceClient;
     _paymentServiceClient     = paymentServiceClient;
 }
Esempio n. 2
0
 public SetOrderAsShippedCommandHandler(IOrderDbContext orderDbContext, IOrderStateMachineFactory orderStateMachineFactory)
 {
     _orderDbContext           = orderDbContext;
     _orderStateMachineFactory = orderStateMachineFactory;
 }
 public SetOrderAsFulfilledCommandHandler(IOrderStateMachineFactory orderStateMachineFactory, IOrderDbContext orderDbContext)
 {
     _orderStateMachineFactory = orderStateMachineFactory;
     _orderDbContext           = orderDbContext;
 }
 public OrderController(IOrderStateMachineFactory orderStateMachineFactory, IOrderService orderService)
 {
     _orderStateMachineFactory = orderStateMachineFactory;
     _orderService             = orderService;
 }