コード例 #1
0
        public virtual async Task <IActionResult> GenericAttributeDtoListGet([FromQuery] int start, [FromQuery] int size)
        {
            _dbContext.RefreshFullDomain();

            var l1 = await _attributeService.ListAttribute(size, start);

            return(new ObjectResult(_mapper.Map <List <Genericattribute>, List <GenericAttributeDto> >(l1)));
        }
コード例 #2
0
        public virtual async Task <IActionResult> CustomerByIdGet([FromQuery] string id)
        {
            User.CheckIfValidCustomerId(id, true);

            _dbContext.RefreshFullDomain();
            var cust = await _customerService.GetCustomerByIdAsync(id);

            return(new ObjectResult(cust));
        }
コード例 #3
0
        public virtual async Task <IActionResult> ArticleByIdGet([FromQuery] string articleId)
        {
            _dbContext.RefreshFullDomain();
            var workflowById = await _genService.GetSingleByPredicateAsync((x => {
                return(x.Articleid.ToString() == articleId);
            }));

            return(new ObjectResult(workflowById));
        }
コード例 #4
0
        public virtual async Task <IActionResult> ContentblockByIdGet([FromQuery] string ContentblockId)
        {
            _dbContext.RefreshFullDomain();
            var workflowById = await _genService.GetSingleByPredicateAsync((x => {
                return(x.Contentblockid.ToString() == ContentblockId);
            }), d =>
            {
                return(d.Include("Contentblockimagemap")
                       .Include("Contentblockimagemap.Image"));
            });

            return(new ObjectResult(workflowById));
        }
コード例 #5
0
        public virtual void Execute(IJobExecutionContext context)
        {
            logger.Info("Start Elasticsearch Indexing Product....");

            _dbContextService.RefreshFullDomain();
            _indexingProductService.IndexProduct();

            logger.Info("Finishing Elasticsearch Indexing Product....");
        }
コード例 #6
0
        public virtual void Execute(IJobExecutionContext context)
        {
            logger.Info("Starting PeopleOnline DeQueue....");

            _dbContextService.RefreshFullDomain();

            _peopleOnlineService.ProcessQueuePeopleOnline("scheduler-job-people-online");

            Thread.Sleep(Int32.MaxValue);

            logger.Info("Finishing PeopleOnline DeQueue....");
        }
コード例 #7
0
        public virtual async void Execute(IJobExecutionContext context)
        {
            logger.Info("Start Product Workflow....");

            _dbContextService.RefreshFullDomain();

            var lstProduct = _productService.GetAllProducts();

            lstProduct.ForEachIndexed((x, i) => _workflowService.ExecuteProductMainWorkflow(x.ProductID));

            logger.Info("Finishing Product Workflow....");
        }
コード例 #8
0
        public virtual void Execute(IJobExecutionContext context)
        {
            logger.Info("Starting Product Mailer DeQueue....");

            _dbContextService.RefreshFullDomain();

            _productMailQueueService.ProcessQueueProductEmail("scheduler-job-every30s");

            Thread.Sleep(Int32.MaxValue);

            logger.Info("Finishing Product Mailer DeQueue....");
        }