Example #1
0
 public void EsbDistributionTaskService()
 {
     Connn();
     var service = new EsbDistributionTaskService();
     service.InitTaskStatus(120, 1);
     var selectEvents = service.SelectEvents(10);
     service.UpdateBySucceed(Guid.NewGuid());
     service.UpdateByFaild(Guid.NewGuid(), "错误啦");
 }
Example #2
0
        /// <summary>
        /// 校验业务系统或者获取业务系统数据
        /// </summary>
        public void Process()
        {
            try
            {

                var ser = new EsbDistributionTaskService();

                ser.SaveTasks(new EsbEventQueueService().SelectNowEvent(), 1);
                ser.DistributeTask(ser.SelectNowEvents());
            }
            catch (System.Exception exception)
            {
                new MyLogger().WriteLog(LogLevel.Error, "NowAsyncReceiveWorker:Process=>", exception.ToString());
            }
        }
Example #3
0
 public DistributionCommand(IAsyncService asyncService, IOrganizationConfiguration config)
     : base(asyncService, config)
 {
     _distributionTaskService = new EsbDistributionTaskService();
 }