摘要: 主要实现了 轮询、加权轮询、随机、加权随机、IPHash 参考大佬文章: https://www.cnblogs.com/wxd0108/p/5465938.html 废话不说,码上见 using System; using System.Collections.Generic; using Sys 阅读全文
posted @ 2021-05-14 17:23 我的用户名 阅读(1333) 评论(0) 推荐(0) 编辑
摘要: 转载自网上大佬的文档,具体链接不详 蓝牙 蓝牙分为传统蓝牙和BLE蓝牙两种连接方式。对于苹果的iOS系统来讲传统蓝牙需要经过苹果的安全认证,因此都是走BLE蓝牙通道通道进行通信。 BLE是Bluetooth Low Energy的缩写,又叫蓝牙4.0,区别于蓝牙3.0和之前的技术。 l 蓝牙双模简称 阅读全文
posted @ 2021-05-13 17:50 我的用户名 阅读(2071) 评论(0) 推荐(0) 编辑
摘要: 获取所有继承自 ControllerBase 的类,获取其公共的实例的方法(不包含父类),认作接口, 接口注释的xml文件,可以在项目-右键属性-生成-XML文档文件勾选,再次生成。 using System; using System.Collections.Generic; using Syst 阅读全文
posted @ 2021-04-26 16:20 我的用户名 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 中文和双引号会正常处理 DataTable实现了序列化和反序列化 废话不说,直接拿去用吧 #if NETSTANDARD2_0_OR_GREATER using System; using System.Collections.Generic; using System.Data; using Sy 阅读全文
posted @ 2021-04-23 17:38 我的用户名 阅读(964) 评论(0) 推荐(0) 编辑
摘要: C#生成的JWT Token,java不认, 看了下java JWT的生成源码,自己动手实现了一个C#版的JWT生成工具 目的是为了调试线上java的jwt接口 线上项目请使用成熟的jwt组件 参考了网上大佬的文章,简单封装一个开箱即用的工具类 using System; using System. 阅读全文
posted @ 2021-04-18 11:46 我的用户名 阅读(186) 评论(0) 推荐(0) 编辑
摘要: http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml Hypertext Transfer Protocol (HTTP) Status Code Registry Last Updated2018-09- 阅读全文
posted @ 2021-03-18 09:19 我的用户名 阅读(57) 评论(0) 推荐(0) 编辑
摘要: NetCore 日志写RabbitMQ using System; using System.Collections.Concurrent; using System.Configuration; using System.IO; using System.Text; using System.Li 阅读全文
posted @ 2021-03-10 10:47 我的用户名 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 废话不说,直接代码 //注入 按单例模式注入RabbitMQ的ConnectionFactory { var mqCfg = context.Configuration.GetSection("RabbitMQ").Get<RabbitMQCfg>(); var cf = new Connectio 阅读全文
posted @ 2021-03-09 09:52 我的用户名 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 支持Win10x64、Win7x32、x64,其他没有测试 using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.Intero 阅读全文
posted @ 2021-03-04 15:36 我的用户名 阅读(1495) 评论(0) 推荐(0) 编辑
摘要: .net5.0 nuget <PackageReference Include="AspectCore.Core" Version="2.1.0" /> <PackageReference Include="AspectCore.Extensions.DependencyInjection" Ver 阅读全文
posted @ 2021-01-20 15:04 我的用户名 阅读(416) 评论(0) 推荐(2) 编辑