Exemple #1
0
 Trigger LoadTrigger()
 {
     if (!AllowLazyLoad(r => r.Trigger))
     {
         return(trigger.CurrentValue);
     }
     if (trigger.CurrentValue == null)
     {
         return(trigger.CurrentValue);
     }
     return(triggerService.GetTrigger(trigger.CurrentValue.Id));
 }
Exemple #2
0
        /// <summary>
        /// 获取任务执行计划
        /// </summary>
        /// <param name="filter">查询条件</param>
        /// <returns></returns>
        public TriggerDto GetTrigger(TriggerFilterDto filter)
        {
            var trigger = triggerService.GetTrigger(CreateQueryObject(filter));

            return(trigger.MapTo <TriggerDto>());
        }