示例#1
0
        public static void RegisterExtensions()
        {
            var extensions = new DeliveryJobExtensions();

            foreach (var item in extensions.ExtensionsDictionary)
            {
                JobTaskExtensionResolver.Register(item.Key, item.Value);
            }
        }
示例#2
0
文件: Job.cs 项目: ririyad/TaskCat
        private void ExecuteExtensions(JobTask task)
        {
            var extensions = JobTaskExtensionResolver.Resolve(this.Order.Type, task.Type);

            if (extensions != null)
            {
                foreach (var extension in extensions)
                {
                    extension.CheckAndExecute(task, this);
                }
            }
        }