摘要:加密代码 需要引用System.Security.Cryptography命名空间 解密 原:https://blog.csdn.net/blueplus/article/details/80512438
阅读全文
摘要:需要创建两个控制台应用 引用用下面的包 (1)生产者 static void Main(string[] args) { ConnectionFactory factory = new ConnectionFactory(); factory.HostName="192.168.10.10";(例)
阅读全文
摘要:#region 跨域问题 app.UseCors(builder => builder .AllowAnyOrigin() .AllowAnyMethod() .AllowAnyHeader() .AllowCredentials()); #endregion
阅读全文
摘要:新建一个Core的Web项目,然后创建相关文件等 添加一个处理错误的类库ErrorMiddleware 下面是该类库的代码 到这里标红的两个是需要注意的 RequestDelegate是一种委托类型,其全貌为public delegate Task RequestDelegate(HttpConte
阅读全文
摘要:An error occurred while starting the application 提示:启动应用程序时发生错误 这个错误在Startup启动项里面 要找具体的报错位置 如下 这样就可以查看到具体是哪一行代码报错了 原创:https://www.cnblogs.com/itslives
阅读全文
摘要:新建控制台 public class AppSettings { public string ApiHost { get; } public AppSettings(IConfigurationSection section) { this.ApiHost = section.GetSection(
阅读全文