コード例 #1
0
 public OrderController(
     IApplicationLocale applicationLocale,
     IDomainMicroService domainMicroService,
     IOrderUserService orderUserService)
     : base(
         applicationLocale,
         domainMicroService)
 {
     OrderUserService = orderUserService ?? throw new ArgumentNullException(nameof(orderUserService));
 }
コード例 #2
0
 public ReturnController(
     IApplicationLocale applicationLocale,
     IDomainMicroService domainMicroService,
     IFulfillmentMicroService fulfillmentMicroService,
     IOrderUserService orderUserService)
     : base(
         applicationLocale,
         domainMicroService)
 {
     FulfillmentMicroService = fulfillmentMicroService ?? throw new ArgumentNullException(nameof(fulfillmentMicroService));
     OrderUserService        = orderUserService ?? throw new ArgumentNullException(nameof(OrderUserService));
 }
コード例 #3
0
 public AddOrderHandler(
     IUnitOfWork uow,
     IOrderService orderService,
     IOrderItemService orderItemService,
     IProductService productService,
     IOrderUserService orderUserService
     )
 {
     _uow              = uow;
     _orderService     = orderService;
     _orderItemService = orderItemService;
     _productService   = productService;
     _orderUserService = orderUserService;
 }
コード例 #4
0
 public CartUserService(
     IApplicationRequestServices requestServices,
     ILogger <CartUserService> logger,
     IEventProcessorMicroService eventProcessorMicroService,
     IOrderMicroService orderMicroService,
     IProjectMicroService projectMicroService,
     IOrderUserService projectOrderService,
     ISquareMicroService squareMicroService,
     IUserMicroService userMicroService)
     : base(requestServices, logger)
 {
     EventProcessorMicroService = eventProcessorMicroService ?? throw new ArgumentNullException(nameof(eventProcessorMicroService));
     OrderMicroService          = orderMicroService ?? throw new ArgumentNullException(nameof(orderMicroService));
     ProjectMicroService        = projectMicroService ?? throw new ArgumentNullException(nameof(projectMicroService));
     ProjectOrderService        = projectOrderService ?? throw new ArgumentNullException(nameof(projectOrderService));
     SquareMicroService         = squareMicroService ?? throw new ArgumentNullException(nameof(squareMicroService));
     UserMicroService           = userMicroService ?? throw new ArgumentNullException(nameof(userMicroService));
 }
コード例 #5
0
 public OrderUserController(IOrderUserService service)
 {
     _service = service;
 }
コード例 #6
0
 public OrderUserController(IConfiguration Config, IOrderUserService _order, IHostingEnvironment env)
 {
     _OrderUserService   = _order;
     _hostingEnvironment = env;
     configuration       = Config;
 }