上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: 1.创建和启动Task任务 Task task1 = new Task(() => { Console.WriteLine("通过Start启动Task任务"); }); task1.Start(); Task.Run(() => { Console.WriteLine("通过Run启动Task任务 阅读全文
posted @ 2022-05-16 22:34 乌柒柒 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 测试工具:找到Vs的安装路径,找到Common7\IDE\WcfTestClient.exe 1.添加包 CoreWCF.Http 和 CoreWCF.Primitives 这里代码都是 1.0.1 版本 2.修改配置文件 在最前面添加 "Urls": "http://localhost:5000; 阅读全文
posted @ 2022-05-16 11:29 乌柒柒 阅读(553) 评论(0) 推荐(0) 编辑
摘要: 1.普通异步(Core直到6.0目前都不支持 BeginInvoke) Func<string, string> func = (sr) => { return sr; };//先自定义委托 IAsyncResult asyncResult= func.BeginInvoke("sssssss", 阅读全文
posted @ 2022-05-11 20:38 乌柒柒 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 1.委托 定义一个委托: delegate void Show(); 委托的执行 委托名.invoke() 委托名(); 委托名。beginInvoke() // 开启一个新的线程 Core 里面不支持 2.C# 自带委托 Func 和 action Func<string, string> fun 阅读全文
posted @ 2022-04-26 21:43 乌柒柒 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 1.添加命名空间 using System.Reflection; 2.把dll加载入项目 Assembly ty = Assembly.Load("ClassLibraryTest");//不加dll后缀,在core里面使用容易报错 Assembly ty = Assembly.LoadFrom( 阅读全文
posted @ 2022-03-29 22:02 乌柒柒 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 1. 添加引用 using Microsoft.Extensions.Configuration;using Microsoft.Extensions.Configuration.Json; 列子: { "compilerOptions": { "noImplicitAny": false, "no 阅读全文
posted @ 2022-03-23 22:20 乌柒柒 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 1.取m,n行数据 select top @pageSize id from tableName where id not in ( select top (@pageNo-1)*@pageSize id from tableName )--SQL Server select * from arti 阅读全文
posted @ 2022-03-09 17:57 乌柒柒 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 1.Engine var engine = new Engine(); string file = Server.MapPath("../Script/challenge_6.js"); StreamReader streamReader = new StreamReader(file); stri 阅读全文
posted @ 2022-03-01 16:41 乌柒柒 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 执行shell报错command not found 参考:https://blog.csdn.net/weixin_34416754/article/details/86006804 解决方案: 1.控制台执行 echo $PATH2。把输出的这句话复制 jenkins->系统管理->系统设置 阅读全文
posted @ 2022-01-25 17:57 乌柒柒 阅读(22) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取客户端IP主机地址。 /// </summary> /// <returns></returns> public static string GetIP() { HttpRequest request = HttpContext.Current.Request 阅读全文
posted @ 2022-01-25 16:32 乌柒柒 阅读(41) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页