博客园不常在线

有问题联系微信

微信号

微信公众号

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 21 下一页
摘要: 1.简单介绍 Quarz.Net中采用插件式来实现配置文件配置,通过XMLSchedulingDataProcessor类进行Xml数据处理 默认配置文件命名:quart_jobs.xml public const string QuartzXmlFileName = "quartz_jobs.xm 阅读全文
posted @ 2020-07-14 09:37 Code技术分享 阅读(1645) 评论(0) 推荐(0) 编辑
摘要: 案例:修改默认线程个数 1.NameValueCollection System.Collections.Specialized.NameValueCollection collection = new System.Collections.Specialized.NameValueCollecti 阅读全文
posted @ 2020-07-13 09:37 Code技术分享 阅读(1402) 评论(0) 推荐(1) 编辑
摘要: 1.DisallowConcurrentExceution 从字面意思来看也就是不允许并发执行 简单的演示一下 [DisallowConcurrentExecution] public class TestDisallowConcurrentExectionJob : IJob { public a 阅读全文
posted @ 2020-07-12 19:06 Code技术分享 阅读(5691) 评论(3) 推荐(3) 编辑
摘要: 1.DateOf、ToDayAt、TomorrowAt DateOf:指定年月日时分秒 public static DateTimeOffset DateOf(int hour, int minute, int second) { ValidateSecond(second); ValidateMi 阅读全文
posted @ 2020-07-12 15:27 Code技术分享 阅读(577) 评论(0) 推荐(0) 编辑
摘要: Quartz.Net中为了动态排除一些时间,而使用Calendar可以做到 1.DailyCalendar 可以动态的排除一天中的某些时间段 示例:在一天当中的13:00到14:00不要执行 public async static Task Test() { var scheduler = awai 阅读全文
posted @ 2020-07-12 14:21 Code技术分享 阅读(707) 评论(0) 推荐(0) 编辑
摘要: 1.创建WindowsService项目 2.配置项目 3.AddInstaller(添加安装程序) 4.修改ServiceName(服务名称)、StartType(启动类型)、Description(说明)、DisplayName(显示名称) StartType共有五种类型:Boot(开机启动)、 阅读全文
posted @ 2020-07-10 17:03 Code技术分享 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 1.介绍 希尔排序是希尔(Donald Shell)于1959年提出的一种排序算法。希尔排序也是一种插入排序,它是简单插入排序经过改进之后的一个更高效的版本,也称为缩小增量排序。 2.基本思想 希尔排序是把记录按下标的一定增量分组,对每组使用直接插入排序算法排序;随着增量逐渐减少,每组包含的关键词越 阅读全文
posted @ 2020-07-04 14:37 Code技术分享 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 1.使用 var scheduler =await StdSchedulerFactory.GetDefaultScheduler(); await scheduler.Start(); var job = JobBuilder.Create<FirstJob>().Build(); var tri 阅读全文
posted @ 2020-07-03 10:14 Code技术分享 阅读(2078) 评论(0) 推荐(0) 编辑
摘要: 1.SkipList Redis的sortedSet数据结构是有序不重复的(索引为唯一的,数据(score)却可以重复), 跳表是redis的一个核心组件,也同时被广泛地运用到了各种缓存地实现当中,它的主要优点, 就是可以跟红黑树、AVL等平衡树一样,做到比较稳定地插入、查询与删除。理论插入查询删除 阅读全文
posted @ 2020-07-02 15:38 Code技术分享 阅读(619) 评论(0) 推荐(0) 编辑
摘要: 1.介绍 Hash是以K->V形式存储,而Set则是K存储,空间节省了很多 Redis中Set是String类型的无序集合;集合成员是唯一的。 这就意味着集合中不能出现重复的数据。可根据应用场景需要选用该数据类型。(比如:好友/关注/粉丝/感兴趣的人/黑白名单) 2.源码解析 Redis使用Dict 阅读全文
posted @ 2020-07-02 10:13 Code技术分享 阅读(582) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 21 下一页