01 2019 档案

对称加密AES
摘要:加密代码 需要引用System.Security.Cryptography命名空间 解密 原:https://blog.csdn.net/blueplus/article/details/80512438 阅读全文

posted @ 2019-01-29 10:56 FFFYYY 阅读(138) 评论(0) 推荐(0) 编辑

MQ 简单的使用
摘要:需要创建两个控制台应用 引用用下面的包 (1)生产者 static void Main(string[] args) { ConnectionFactory factory = new ConnectionFactory(); factory.HostName="192.168.10.10";(例) 阅读全文

posted @ 2019-01-28 18:08 FFFYYY 阅读(353) 评论(0) 推荐(0) 编辑

For、Foreach、和Parallel.For等简单的速度检测
摘要:控制台代码 直接复制即可 阅读全文

posted @ 2019-01-28 17:21 FFFYYY 阅读(145) 评论(0) 推荐(0) 编辑

core跨域问题
摘要:#region 跨域问题 app.UseCors(builder => builder .AllowAnyOrigin() .AllowAnyMethod() .AllowAnyHeader() .AllowCredentials()); #endregion 阅读全文

posted @ 2019-01-26 18:33 FFFYYY 阅读(562) 评论(0) 推荐(0) 编辑

Core统一日志处理
摘要:新建一个Core的Web项目,然后创建相关文件等 添加一个处理错误的类库ErrorMiddleware 下面是该类库的代码 到这里标红的两个是需要注意的 RequestDelegate是一种委托类型,其全貌为public delegate Task RequestDelegate(HttpConte 阅读全文

posted @ 2019-01-26 18:32 FFFYYY 阅读(178) 评论(0) 推荐(0) 编辑

Core 接口发布报错
摘要:An error occurred while starting the application 提示:启动应用程序时发生错误 这个错误在Startup启动项里面 要找具体的报错位置 如下 这样就可以查看到具体是哪一行代码报错了 原创:https://www.cnblogs.com/itslives 阅读全文

posted @ 2019-01-26 15:39 FFFYYY 阅读(166) 评论(0) 推荐(0) 编辑

Core 读取配置文件
摘要:新建控制台 public class AppSettings { public string ApiHost { get; } public AppSettings(IConfigurationSection section) { this.ApiHost = section.GetSection( 阅读全文

posted @ 2019-01-23 16:14 FFFYYY 阅读(563) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示