private List <long> ChargeResumption() { var list = new List <long>(); //优先处理节点实例取消请求,避免对下一个节点执行造成干扰 list.AddRange(_repository.ChargeResumption <ActivityInstanceCancelResumption>(this._schedulerId, this._perChargeCount)); //优先处理任务创建请求 list.AddRange(_repository.ChargeResumption <WorkItemCreateResumption>(this._schedulerId, this._perChargeCount)); list.AddRange(_repository.ChargeResumption(this._schedulerId, this._perChargeCount)); list = list.Distinct().ToList(); if (this._log.IsDebugEnabled && list.Count > 0) { this._log.DebugFormat("获得对#{0}的调度职责", string.Join("#", list)); } return(list); }
IEnumerable<Tuple<long, Guid>> ISchedulerService.ChargeResumption(string chargingBy, int count) { return _resumptionRepository.ChargeResumption(chargingBy, count); }