Exemplo n.º 1
0
 public CreateModalModel(
     IProductInventoryAppService productInventoryAppService,
     IProductAppService productAppService)
 {
     _productInventoryAppService = productInventoryAppService;
     _productAppService          = productAppService;
 }
Exemplo n.º 2
0
 public CreateModalModel(
     IJsonSerializer jsonSerializer,
     IProductAppService productAppService)
 {
     _jsonSerializer    = jsonSerializer;
     _productAppService = productAppService;
 }
Exemplo n.º 3
0
 public ProductController(
     IProductAppService productAppService,
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler mediator) : base(notifications, mediator)
 {
     _productAppService = productAppService;
 }
 public HomeController(ISessionAppService sessionAppService,
                       IStockAppService stockService,
                       IBadStockAppService badStockService,
                       ISalesmanAppService salesmaService,
                       ISupplierAppService supplierService,
                       ICustomerAppService customerAppService,
                       IProductAppService productAppService,
                       IInvoiceAppService invoiceAppService,
                       ICreditMemoAppService creditMemoAppService,
                       IDebitMemoAppService debitMemoAppService,
                       IPurchaseOrderAppService purchaseOrderAppService,
                       IVanAppService vanAppService,
                       IVanStockAppService vanStockAppService
                       )
 {
     _sessionAppService       = sessionAppService;
     _stockService            = stockService;
     _badStockService         = badStockService;
     _salesmaService          = salesmaService;
     _supplierService         = supplierService;
     _customerAppService      = customerAppService;
     _productAppService       = productAppService;
     _invoiceAppService       = invoiceAppService;
     _creditMemoAppService    = creditMemoAppService;
     _debitMemoAppService     = debitMemoAppService;
     _purchaseOrderAppService = purchaseOrderAppService;
     _vanAppService           = vanAppService;
     _vanStockAppService      = vanStockAppService;
 }
Exemplo n.º 5
0
 public FlashSalePlanAppService(
     IFlashSalePlanRepository flashSalePlanRepository,
     IProductAppService productAppService,
     IDistributedCache <FlashSalePlanPreOrderCacheItem> tokenDistributedCache,
     IDistributedCache <FlashSalePlanCacheItem, Guid> planDistributedCache,
     IDistributedEventBus distributedEventBus,
     IFlashSaleResultRepository flashSaleResultRepository,
     IAbpDistributedLock distributedLock,
     IFlashSalePlanHasher flashSalePlanHasher,
     IFlashSaleInventoryManager flashSaleInventoryManager,
     IDistributedCache distributedCache,
     IOptionsMonitor <FlashSalesOptions> optionsMonitor)
     : base(flashSalePlanRepository)
 {
     FlashSalePlanRepository   = flashSalePlanRepository;
     ProductAppService         = productAppService;
     PreOrderDistributedCache  = tokenDistributedCache;
     PlanDistributedCache      = planDistributedCache;
     DistributedEventBus       = distributedEventBus;
     FlashSaleResultRepository = flashSaleResultRepository;
     DistributedLock           = distributedLock;
     FlashSalePlanHasher       = flashSalePlanHasher;
     FlashSaleInventoryManager = flashSaleInventoryManager;
     DistributedCache          = distributedCache;
     Options = optionsMonitor.CurrentValue;
 }
Exemplo n.º 6
0
 public ProductsController(
     IProductAppService productAppService,
     ILogger <ProductsController> logger)
 {
     _productAppService = productAppService;
     _logger            = logger;
 }
Exemplo n.º 7
0
 public AdminController(IProductAppService productAppService, IUserAppService userAppService,
                        IRoleAppService roleAppService)
 {
     _productAppService = productAppService;
     _userAppService    = userAppService;
     _roleAppService    = roleAppService;
 }
Exemplo n.º 8
0
 public CreateModalModel(
     IProductDetailAppService productDetailAppService,
     IProductAppService productAppService)
 {
     _productDetailAppService = productDetailAppService;
     _productAppService       = productAppService;
 }
Exemplo n.º 9
0
 public ProductsController(IProductAppService proAppservice, ISupplierAppService supAppService, ICategoryAppService catAppService, ErpDemoDBContext context)
 {
     _proAppservice = proAppservice;
     _supAppService = supAppService;
     _catAppService = catAppService;
     _context       = context;
 }
Exemplo n.º 10
0
 public UrlMiddleware(RequestDelegate next,
                      IProductAppService productAppService,
                      ITransientTestAppService transientTestAppService)
 {
     //构造中的productAppService服务是由IApplicationBuilder.ApplicationServices根容器创建的
     _next = next;
 }
 public ProductsController(
     IProductAppService productAppService,
     ILogger<ProductsController> logger)
 {
     _productAppService = productAppService;
     _logger = logger;
 }
Exemplo n.º 12
0
 public ProductsController(
     IProductAppService productAppService,
     IProductCategoriesAppService productCategoriesAppService)
 {
     _productAppService           = productAppService;
     _productCategoriesAppService = productCategoriesAppService;
 }
 public ProductController(
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler mediator,
     IProductAppService service)
     : base(notifications, mediator)
 {
     _service = service;
 }
Exemplo n.º 14
0
 public OrderItemAppService(IRepository <Models.OrderItem, Guid> repository,
                            IProductAppService productAppService,
                            IOrderAppService orderAppService)
 {
     _repository        = repository;
     _productAppService = productAppService;
     _orderAppService   = orderAppService;
 }
Exemplo n.º 15
0
 public OrderController(IOrderAppService orderService,
                        ICustomerAppService customerService,
                        IProductAppService productService)
 {
     _orderService    = orderService;
     _customerService = customerService;
     _productService  = productService;
 }
Exemplo n.º 16
0
 public ProductController(IProductAppService productAppService
                          , ProductConverter productConverter
                          , ILogger <ProductController> logger)
 {
     _productAppService = productAppService;
     _productConverter  = productConverter;
     _logger            = logger;
 }
Exemplo n.º 17
0
 public OrderController(ICustomerAppService customerAppService, IOrderAppService orderAppService,
                        IProductAppService productAppService, IMapper mapper)
 {
     this.customerAppService = customerAppService;
     this.orderAppService    = orderAppService;
     this.productAppService  = productAppService;
     this.mapper             = mapper;
 }
Exemplo n.º 18
0
 public OrderDomainService(IRepository repository,
                           IProductAppService productAppService,
                           IAccountAppService accountAppService)
 {
     _repository        = repository;
     _productAppService = productAppService;
     _accountAppService = accountAppService;
 }
Exemplo n.º 19
0
 public OrdersController(IOrderHeadAppService ordheadAppservice, IOrderDetailsAppService orddetailsAppservice, IProductAppService proAppservice, ICustomerAppService cusAppservice, ErpDemoDBContext context)
 {
     _ordheadAppservice    = ordheadAppservice;
     _orddetailsAppservice = orddetailsAppservice;
     _proAppservice        = proAppservice;
     _cusAppservice        = cusAppservice;
     _context = context;
 }
Exemplo n.º 20
0
 public CartController(INotificationHandler <DomainNotification> notifications,
                       IProductAppService productAppService,
                       IMediatorHandler mediatorHandler,
                       IOrderQueries orderQueries) : base(notifications, mediatorHandler)
 {
     _productAppService = productAppService;
     _mediatorHandler   = mediatorHandler;
     _orderQueries      = orderQueries;
 }
Exemplo n.º 21
0
        public async Task InvokeAsync(HttpContext context, IProductAppService productAppService, ITransientTestAppService transientTestAppService)
        {
            //invoke中的productAppService其实是context.RequestServices子容器创建的。
            //这里的context.RequestServices子容器也是由IApplicationBuilder.ApplicationServices根容器创建来的。
            var productService = context.RequestServices.GetRequiredService <IProductAppService>();//使用解析的方式和上面方法中注入进来是一样的作用,切记是使用子容器RequestServices解析

            Console.WriteLine($"请求第{times++}次进入UrlMiddleware中间件。hash:{this.GetHashCode()}");
            await _next(context);
        }
 public StocksController(ISessionAppService sessionAppService,
                         IStockAppService stockService,
                         IProductAppService productService
                         )
 {
     _sessionAppService = sessionAppService;
     _stockService      = stockService;
     _productService    = productService;
 }
Exemplo n.º 23
0
 public ClientDemoService(
     IProductAppService productAppService,
     IIdentityModelAuthenticationService authenticationService,
     IConfiguration configuration)
 {
     _productAppService     = productAppService;
     _authenticationService = authenticationService;
     _configuration         = configuration;
 }
Exemplo n.º 24
0
 public CreateModalModel(
     ICategoryAppService categoryAppService,
     IProductDetailAppService productDetailAppService,
     IProductAppService service)
 {
     _categoryAppService      = categoryAppService;
     _productDetailAppService = productDetailAppService;
     _service = service;
 }
 public BadStockController(ISessionAppService sessionAppService,
                           IBadStockAppService badStockService,
                           IProductAppService productService
                           )
 {
     _sessionAppService = sessionAppService;
     _badStockService   = badStockService;
     _productService    = productService;
 }
Exemplo n.º 26
0
 public LayoutController(IProductAppService productAppService,
                         ICategoryAppService categoryAppService,
                         ICompanyAppService companyAppService,
                         ISeoAppService seoAppService) : base(seoAppService)
 {
     _companyAppService  = companyAppService;
     _productAppService  = productAppService;
     _categoryAppService = categoryAppService;
 }
 public ProductController(ISessionAppService sessionAppService,
                          IProductAppService productService,
                          ISupplierAppService supplierService
                          )
 {
     _sessionAppService = sessionAppService;
     _productService    = productService;
     _supplierService   = supplierService;
 }
Exemplo n.º 28
0
 public PageChildElementAppService(
     IPageChildElementRepository pageChildElementRepository, UserManager userManager, IProductAppService productAppService
     , ICacheManager cacheManager
     )
 {
     _pageChildElementRepository = pageChildElementRepository;
     _userManager       = userManager;
     _productAppService = productAppService;
     _cacheManager      = cacheManager;
 }
Exemplo n.º 29
0
        private DateTime preDate = DateTime.Now.AddDays(-1);//用于控制在合适时间段中只执行一次档级更新(保证只会去数据库去请求一次levellog的存在)

        public UpdateLevelWorker(AbpTimer timer,
                                 IProductAppService productAppService) : base(timer)
        {
            Timer.Period = 3600000;
            //Timer.Period = 10000;
            _productAppService = productAppService;
            //启动日志
            //Logger.InfoFormat("启动job时间:{0}", DateTime.Now);
            //DoWork();
        }
Exemplo n.º 30
0
 public BarcodeController(IOptionsSnapshot <AppSettingsOption> appSettings, ILogger logger,
                          IWebServiceInvoker webServiceInvoker, IProductAppService productAppService,
                          IFoodFactsAppService foodFactsAppService)
 {
     _webServiceInvoker   = webServiceInvoker;
     _appSettings         = appSettings.Value;
     _logger              = logger;
     _productAppService   = productAppService;
     _foodFactsAppService = foodFactsAppService;
 }
Exemplo n.º 31
0
 public ProductsController(IProductAppService productAppService,
                           ICategoryAppService categoryAppService,
                           ISupplierAppService supplierAppService,
                           IProductSlideImageAppService productSlideImageAppService)
 {
     _productAppService           = productAppService;
     _categoryAppService          = categoryAppService;
     _supplierAppService          = supplierAppService;
     _productSlideImageAppService = productSlideImageAppService;
 }
Exemplo n.º 32
0
 public ProductController(IProductAppService appService)
 {
     _appService = appService;
 }
Exemplo n.º 33
0
 public HomeController(IProductAppService productAppService)
 {
     _productAppService = productAppService;
 }
Exemplo n.º 34
0
 public StoreManagerController(IProductAppService productAppService, IOwnerAppService ownerAppService, ICategoryAppService categoryAppService)
 {
     _productAppService = productAppService;
     _ownerAppService = ownerAppService;
     _categoryAppService = categoryAppService;
 }
Exemplo n.º 35
0
 public ProductController(IProductAppService service)
 {
     _service = service;
 }
Exemplo n.º 36
0
 public ShoppingCartController(IProductAppService productAppService, ICartAppService cartAppService)
 {
     _productAppService = productAppService;
     _cartAppService = cartAppService;
 }
Exemplo n.º 37
0
 public ProdutoController(IProductAppService produtoApp)
 {
     _produtoApp = produtoApp;
 }
Exemplo n.º 38
0
 public StoreController(ICategoryAppService categoryAppService, IProductAppService productAppService)
 {
     _categoryAppService = categoryAppService;
     _productAppService = productAppService;
 }
 public Products2AppService(
     IProductAppService productAppService)
 {
     _productAppService = productAppService;
 }