回到目录

SchedulingTask产生的原因

任务调试主要指定期执行某些任务代码,之前用过quartz,感觉有些重,使用时需要添加包包,配置管理项时,对于简单的项目用它就显得有些臃肿了,不如直接上个简单的东西来实现,所有才有了今天的SchedulingTask,它被大叔集成到了最新的lindAgile框架里,也是Modules的一个子单元,在项目启动时由ModuleManager统一完成注册!

SchedulingTask核心的设计图

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnkAAADECAIAAABsoKB0AAAgAElEQVR4nO2d61MT2b73z5/Sfwq+G99hYZVVo1P7qVMedWrccgSCzAzj7Bkf2HGcxysQUIgQDAS5XxOcEYSE3BOSEBFGEcVIEhJwPOPUPqO1az0vGtIhFwj0Wunu5Pupb1nN6tUrzW8t+mNC6PwHAQAAAABL/kPqEwAAAAAKHLgWAAAAYAtcCwAAALAlr64Nxf8cdb6p6fDUdHhOXJ0pq59Gijz8YuicWlmN/JHPpVi8xOPE5SI6HdHpyLVrRK1G5Bh+gqanSTQq9YrZRYFdw/N5/cmfa3str8412Wse+K8bV5qn1vSOSJ97o9+DFG+6ndHmqbVbky9rDcGzTfbrw08//OtT3hZkMTI3R5qbSWcnGRkhs7PE5SJLS+S33xB5xeMhs7NkYoJ0dRGNhgwPk//9X6mXDiEFdw3P8/UnH64Nxf+sbHPVdi90WMPDvrhxYXMyuIUgiYz44npHpG5w+atmx3LofR7WZNERjxOtluj1ZGaGvH5N3r8nHz4gck8oROx20tdH7t4lb99KuHwK+xqen+sPc9euRv4402C7aXppcEYnAlumBQTJEGNgq9e9oZle+6rFEXz9jvWyLC6iUdLURMbGiNdLtrbIH38gisn792RpiUxOkpYW8vq1JMunGK7hebj+sHXtx0//rmhz3fnl1YA3ZlzYQpC9M+LfvDf75myjDS8mU+PTJ9LWRiYmyMqK9OZADpdIhDx+TJqa8v9icuIaPuiNSW5E1hllef1h61r9k5ff9wQNzshEYBNBckm/N1Y3uHx9+CnTlVlEPHlCurtJICC9MBAxef6c9PWR4eE8L5/ta7grKvl/xPMTdt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KcjXq/UqwocBrgWgIKmq4sMDZGZGUTxmZggbW3k0yeplxQ4DHAtAAXNhw+kqYk8fiy9KhAxmZoiLS0kGpV6PYFDAtcCUOg8fUpaW6FbBWdqirS3E4dD6pUEDg9cC0AR4PeTpiYyNESePEEUFqOR3LsH0SoduBaA4uDDB9LVRdrbyeCg9P5AcsnYGOnsJHfvkrdvpV49QCxwLQDFRCBAHj4kajWigGi1xOXCm6EKA7gWAAAAYAtcCwAAALAFrgUAAADYAtcCAAAAbIFrAQAAALbAtQAAAABb4FoAAACALXAtAAAAwBa4FgAAAGALXAsAAACwBa4FAAAA2PL/AV22claJyeLGAAAAAElFTkSuQmCC" alt="" />

SchedulingTask的注册

 ModuleManager.Create()
.UseDefaultContainer()
.UseLogger()
.UseMockRepository()
.UseDefaultMq();

而对于我们每个Job任务,需要开发人员根据业务要求去编写,它们将继承一个叫ScheduleBase的抽象类,此类为我们提供了调度周期,任务执行器等核心的逻辑!

        /// <summary>
/// 启动任务
/// </summary>
/// <param name="name"></param>
/// <param name="action"></param>
/// <param name="dueTime">执行方法前的延时时间,毫秒</param>
/// <param name="interval">执行方法的时间间隔,毫秒</param>
public void StartTask(string name, int interval)
{
lock (_lockObject)
{
if (_taskDict.ContainsKey(name)) return;
var timer = new Timer(TaskCallback, name, Timeout.Infinite, Timeout.Infinite);
_taskDict.Add(name, new TimerTaskModel
{
Name = name,
Callback = Excute,
Timer = timer,
IntervalMillisecond = interval,
Stopped = false
});
timer.Change(interval, );
}
}

而它与其它具体JOB的关系,我们可以用一张图来表示

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlIAAADSCAIAAAAOkrnVAAAeY0lEQVR4nO3d61cT574H8Gevnr9j73X2Wqf7n3AVXOLLvm37shcQ8BJw66nWTd3HI4IKCspNu7vsrtVa8ULdItHaVnZPsWAFkWtCyD1ACLlfZnIjOS8mDEMCATXkeWbm+1nPiwGR0v6+5DvPTJKSNAAAgGoQ2j8AAABA8aD2AABARVB7AACgIqg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LN8oczyh9bOLCyZWWTtzLjVtTK8pLAifGYJ85MuPpZZq7OMLcdiy+JEpUMVZplIppLSlZlrOrmcXk5lViqVTqVSiy7n93e/O3vmf7Ju2yr1sUaEHCKHLEAO5ZvDV6i9dDodDPhvdX/zed1f6/52sKOtCYvWOlhT3niq7tatb3MHrNPpTCZT4X67WYQcMrKQQ+SQhfWqOXy12hPpddM///wYi9Zad7oqeayRQg6RQxYgh/LK4WvWnsBgMOT550Hxvck05Qs5ZA3tRNCBHLJmo0m9Ue0JTCYT7X87tTMYDG8+R7lDDqlDDtPIIQM2zWEBag8AAEAuUHsAAKAiqD0AAFAR1B4AAKgIag8AAFQEtQcAACry/0X9aqGshhdwAAAAAElFTkSuQmCC" alt="" />

对于任务的启动,我们由ScheduleFactory来完成,它会将当前运行时下所有继承ScheduleBase的Job类都加载到容器里,通过自己的调试周期去定时执行!

        /// <summary>
/// 开始任务q
/// 装置所有任务,并启动它的StartTask()方法
/// </summary>
public void Run()
{
foreach (var item in GetAllTypes())
{
var obj = Activator.CreateInstance(item, true);
MethodInfo methodinfo = item.GetMethod("StartTask");
_iLogger.Logger_Info(string.Format("{0}这个Job开始执行", item.Name));
methodinfo.Invoke(obj,
new object[]
{
item.Name,
_intervalMillisecond >
? _intervalMillisecond
: item.GetProperty("IntervalMillisecond").GetValue(obj)
});
}
}

而对于使用者来说,要做的就是建立自己的业务Job和在程序入口添加对Run的使用即可

            #region TaskJob
sf.UseLogger().Run();
Console.ReadKey();
#endregion

结果如图

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAX0AAACQCAIAAABrtizuAAAd2UlEQVR4nO1caZBVRZa+f9u2Z9TWnlZnHPcNBbTcFUHBpUVkVwEVClDBDQQXRGWXpRD3rdFWW0VFxwUVHVuceP+6XTpiiBhiov3RP4wZdKZbBUSqSnHu/DjvZWXlyXPyZN77iq7L+SLjRd7vfnny5LnvfZHvvqqb5QoBPv/8c4fZ1h2bv/gytkUl8Offb+jz4Ef/Rp3+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JvadYJ5eYKUkZwlvM7hvLw2nhA/leoZMkNUacBi+HzxkeIlScq2b8X6gzsbWp0ic2BWlQJ+/4z2UxK+FrgqjL4s3Z4N9Sm8O8SsfJ7j8KJkzJKoOjD5DV5lPiZo0Sl9wXcE4jL6UOHw9y4H+vXIFYH8CHdL7pmE+VN5RwSCS3BSKLqjvVADYdyhncWyFMhTedxhHS5Apdkeo71QAQTfx2hDjCMH9jm52FIWgvqNQKHoa6jsKhaKnob6jUCh6Guo7CoWip6G+o1Aoehj/D9VSgIW7TeGuAAAAAElFTkSuQmCC" alt="" />

希望各位继续支持微软,支持咱们自己的.net技术!

谢谢!

回到目录

LindAgile.SchedulingTask~设计一个不错的任务调度组件的更多相关文章

  1. vue 设计一个倒计时秒杀的组件

    简介: 倒计时秒杀组件在电商网站中层出不穷  不过思路万变不离其踪,我自己根据其他资料设计了一个vue版的 核心思路:1.时间不能是本地客户端的时间  必须是服务器的时间这里用一个settimeout ...

  2. 如何设计一个异步Web服务——任务调度

    接上一篇<如何设计一个异步Web服务——接口部分> Application已经将任务信息发到了Service服务器中,接下来,Service服务器改如何对自身的资源进行合理分配以满足App ...

  3. Android 设计一个菱形形状的Imageview组件.

    网上没有资料,特来请教下大神 Android 设计一个菱形形状的Imageview组件. >> android这个答案描述的挺清楚的:http://www.goodpm.net/postr ...

  4. 一个不错的PPT,扁平化设计,开放资源,要的进来

    开了那么多的博客,没做啥资源贡献,今天共享一个不错的PPT模板.例如以下图所看到的,须要的话留下邮箱 watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGFp ...

  5. 如何设计一个优秀的API

    如何设计一个优秀的API - 文章 - 伯乐在线 http://blog.jobbole.com/42317/ 如何设计一个优秀的API - 标点符 https://www.biaodianfu.co ...

  6. 如何设计一个牛逼的API接口

    在日常开发中,总会接触到各种接口.前后端数据传输接口,第三方业务平台接口.一个平台的前后端数据传输接口一般都会在内网环境下通信,而且会使用安全框架,所以安全性可以得到很好的保护.这篇文章重点讨论一下提 ...

  7. 免费开源的DotNet任务调度组件Quartz.NET(.NET组件介绍之五)

    很多的软件项目中都会使用到定时任务.定时轮询数据库同步,定时邮件通知等功能..NET Framework具有“内置”定时器功能,通过System.Timers.Timer类.在使用Timer类需要面对 ...

  8. [每日电路图] 7、设计一个PCB的流程及细节·总结——给外行的同学或刚入行的同学一个宏观鸟瞰电路板设计的大致流程的文章

    前言 最近两天使用AD14软件设计了一个蓝牙防丢器电路板(PCB)图纸,中间有一些细节在本文中记录下,方便下次设计PCB时参考.也希望能给外行的同学或刚入行的同学一个宏观鸟瞰电路板设计的大致流程的文章 ...

  9. Swift技术之如何在iOS 8下使用Swift设计一个自定义的输入法 (主要是NSLayoutConstraint 的使用)

    当前位置: > Swift新手入门 > Swift技术之如何在iOS 8下使用Swift设计一个自定义的输入法 时间:2014-09-10 16:49来源:未知 作者:啊成 举报 点击:5 ...

随机推荐

  1. 比较集合List<T>集合,前后多了哪些数据,少了哪些数据Except

    1.少了哪些数据 private List<int> GetRoleIdListReduce(List<int> roleIdListOld, List<int> ...

  2. OpenCV-Python学习01

    import tensorflow as tf 1 # -*- coding: utf-8 -*- 2 """ 3 Created on Tue Dec 31 19:16 ...

  3. BZOJ_3613_[Heoi2014]南园满地堆轻絮_二分答案

    BZOJ_3613_[Heoi2014]南园满地堆轻絮_二分答案 Description 小 Z 是 ZRP(Zombies’ Republic of Poetry,僵尸诗歌共和国)的一名诗歌爱好者, ...

  4. Python数据结构应用5——排序(Sorting)

    在具体算法之前,首先来看一下排序算法衡量的标准: 比较:比较两个数的大小的次数所花费的时间. 交换:当发现某个数不在适当的位置时,将其交换到合适位置花费的时间. 冒泡排序(Bubble Sort) 这 ...

  5. 简述RPC原理实现

      前言 架构的改变,往往是因为业务规模的扩张. 随着业务规模的扩张,为了满足业务对技术的要求,技术架构需要从单体应用架构升级到分布式服务架构,来降低公司的技术成本,更好的适应业务的发展. 分布式服务 ...

  6. 多租户实现之基于Mybatis,Mycat的共享数据库,共享数据架构

    前言 SaaS模式是什么? 传统的软件模式是在开发出软件产品后,需要去客户现场进行实施,通常部署在局域网,这样开发.部署及维护的成本都是比较高的. 现在随着云服务技术的蓬勃发展,就出现了SaaS模式. ...

  7. 安全性测试入门:DVWA系列研究(二):Command Injection命令行注入攻击和防御

    本篇继续对于安全性测试话题,结合DVWA进行研习. Command Injection:命令注入攻击. 1. Command Injection命令注入 命令注入是通过在应用中执行宿主操作系统的命令, ...

  8. 如何使用vs将asp.net core项目添加容器支持并发布docker镜像到私有dockerhub和添加k8s/helm管理

    这篇文章介绍一下,如何使用VS2017给asp.net core添加容器支持,并发布镜像到私有docker hub,然后用chart管理容器镜像的操作流程. 话不多说,just do it. 新建项目 ...

  9. 一文快速了解MaxCompute

    很多刚初次接触MaxCompute的用户,面对繁多的产品文档内容以及社区文章,往往很难快速.全面了解MaxCompute产品全貌.同时,很多拥有大数据开发经验的开发者,也希望能够结合自身的背景知识,将 ...

  10. 大数据与 AI 生态中的开源技术总结

    本文由云+社区发表 作者:堵俊平 在数据爆炸与智能革命的新时代,新的平台与应用层出不穷,开源项目推动了前沿技术和业界生态快速发展.本次分享将以技术和生态两大视角来看大数据和人工智能技术的发展,通过分析 ...