public AssignVehicleToOrderHandler(IOrderRepository orderRepository, IPricingServiceClient pricingServiceClient, IVehiclesServiceClient vehiclesServiceClient, IMessageBroker messageBroker) { _orderRepository = orderRepository; _pricingServiceClient = pricingServiceClient; _vehiclesServiceClient = vehiclesServiceClient; _messageBroker = messageBroker; }
public AIOrderMakingSaga(IResourceReservationsService resourceReservationsService, IVehiclesServiceClient vehiclesServiceClient, IBusPublisher publisher, ICorrelationContextAccessor accessor, ILogger <AIOrderMakingSaga> logger) { _resourceReservationsService = resourceReservationsService; _vehiclesServiceClient = vehiclesServiceClient; _publisher = publisher; _accessor = accessor; _logger = logger; _accessor.CorrelationContext = new CorrelationContext { User = new CorrelationContext.UserContext() }; }