摘要: 废话不说,直接代码 //注入 按单例模式注入RabbitMQ的ConnectionFactory { var mqCfg = context.Configuration.GetSection("RabbitMQ").Get<RabbitMQCfg>(); var cf = new Connectio 阅读全文
posted @ 2021-03-09 09:52 我的用户名 阅读(504) 评论(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 我的用户名 阅读(1703) 评论(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 我的用户名 阅读(467) 评论(0) 推荐(2)
摘要: MediatR INotification Handler执行不保证顺序!!! 所以给一个 Notification 注册多个Handler 用法是错误的, 正确的用法是在 Handler 中注册下一个需要调用的 Handler 注册: 源码调试: public class NewUserM : I 阅读全文
posted @ 2020-12-11 11:35 我的用户名 阅读(779) 评论(0) 推荐(0)
摘要: command命令语法: https://docs.mongodb.com/manual/reference/command/find/#dbcmd.find db.runCommand( { find: "restaurants", filter: { rating: { $gte: 9 }, c 阅读全文
posted @ 2020-12-08 15:19 我的用户名 阅读(510) 评论(0) 推荐(0)
摘要: 摘自: https://blog.csdn.net/p942005405/article/details/106101029/ 海康: https://open.hikvision.com/hardware/definitions/NET_DVR_GetLastError.html 设备网络SDK开 阅读全文
posted @ 2020-12-04 18:08 我的用户名 阅读(3172) 评论(0) 推荐(0)
摘要: 检查步骤 1.字段是否长度足够 2.字段类型是否有非字符串类型 如果有需要指定DbType <parameter name="@createtime" layout="${date}" dbType="DbType.DateTime" /> 3.dbProvider="Npgsql.NpgsqlCo 阅读全文
posted @ 2020-11-24 18:11 我的用户名 阅读(523) 评论(0) 推荐(0)
摘要: 中间件可以解决 效果 这样就可以做很多好玩的事情了。。 阅读全文
posted @ 2020-11-20 14:50 我的用户名 阅读(114) 评论(0) 推荐(0)
摘要: 可以使用 ChunkingCookieManager 详见: https://docs.microsoft.com/zh-cn/dotnet/api/microsoft.aspnetcore.authentication.cookies.chunkingcookiemanager?view=aspn 阅读全文
posted @ 2020-11-15 00:07 我的用户名 阅读(360) 评论(0) 推荐(0)
摘要: InvalidOperationException: The partial view '../Shared/OKAdmin/_OKNav' was not found. The following locations were searched: /Views/Shared/OKAdmin/_OK 阅读全文
posted @ 2020-08-26 15:43 我的用户名 阅读(1928) 评论(0) 推荐(1)