摘要: 界面图"没有什么技术含量~ 不过还是有部分人不太了解的 接下来一一解析下,勿q 使用步骤: 1.初始化帮助类 QuarztHelper x = new QuarztHelper(); 2.调用方法 await x.CreateScheduler(this); x.AddJob<HelloJob>(" 阅读全文
posted @ 2023-02-07 14:45 园友2288976 阅读(745) 评论(2) 推荐(0)
摘要: public static class JsonHelper { #region 字段 private static string json; public static string path; #endregion #region 构造函数 static JsonHelper() { if (s 阅读全文
posted @ 2023-01-28 13:41 园友2288976 阅读(288) 评论(0) 推荐(0)
摘要: public static T AESEncrypt<T>(T obj) where T : class { if (obj == null) { return obj; } var properties = typeof(T).GetProperties(); foreach (System.Re 阅读全文
posted @ 2023-01-05 09:39 园友2288976 阅读(863) 评论(0) 推荐(0)
摘要: static void Main(string[] args) { //1.创建取消令牌数据 CancellationTokenSource tokenSource = new CancellationTokenSource(); //2.创建取消令牌 CancellationToken token 阅读全文
posted @ 2022-12-02 11:43 园友2288976 阅读(98) 评论(0) 推荐(0)
摘要: Task.Run(() => {for (int i = 0; i < 20; i++) { Console.WriteLine(i); } } }).ContinueWith(NewTask); private static void NewTask(Task T) { Console.Write 阅读全文
posted @ 2022-12-02 11:36 园友2288976 阅读(73) 评论(0) 推荐(0)
摘要: //1.创建取消令牌数据 CancellationTokenSource tokenSource = new CancellationTokenSource(); //2.创建取消令牌 CancellationToken token = tokenSource.Token; Task.Run(() 阅读全文
posted @ 2022-12-02 11:34 园友2288976 阅读(190) 评论(0) 推荐(0)
摘要: 在CustomSummaryCalculate 事件里 //强制初始化,如果列是动态通过数据源加载的,则绑定数据源后gridview想获取列的话,需要调用强制初始化的方法 view.GridControl.ForceInitialize(); ////设置指定列的汇总统计会自定义汇总 //forea 阅读全文
posted @ 2022-09-28 10:30 园友2288976 阅读(56) 评论(0) 推荐(0)
摘要: 参考博客:ASP.NET Core WebAPI中的分析工具MiniProfiler - LamondLu - 博客园 (cnblogs.com) 注意事项: 1.不要盲目copy别人的代码 var html = MiniProfiler.Current.RenderIncludes(HttpCon 阅读全文
posted @ 2022-09-27 11:31 园友2288976 阅读(153) 评论(0) 推荐(0)
摘要: 上一文:C#依赖注入一看就会系列 链接:C#依赖注入(直白明了)讲解 一看就会系列 - 22222220 - 博客园 (cnblogs.com) 上一次我们知道了 为什么要依赖注入,这次我们就用使用人数最多的容器 来讲解下 这一次 带来AutoFac使用 1.通过nuget引入Autofac(我使用 阅读全文
posted @ 2022-08-30 14:53 园友2288976 阅读(555) 评论(0) 推荐(0)
摘要: public static class QuartzHelper { #region 字段 /// <summary> /// 分组名称 /// </summary> private static string GroupName; /// <summary> /// 工作作业 /// </summ 阅读全文
posted @ 2022-07-12 16:36 园友2288976 阅读(287) 评论(0) 推荐(1)