学海无涯

导航

2022年9月24日 #

安装项目模板IdentityServer4.Templates

摘要: 打开PowseShell执行以下命令 dotnet new -i IdentityServer4.Templates 阅读全文

posted @ 2022-09-24 18:36 宁静致远. 阅读(51) 评论(0) 推荐(0) 编辑

客户端URL路径组织模式

摘要: namespace WebMVC.Infrastructure; public static class API { public static class Purchase { public static string AddItemToBasket(string baseUri) => $"{b 阅读全文

posted @ 2022-09-24 11:36 宁静致远. 阅读(26) 评论(0) 推荐(0) 编辑

Service模块读取AppSettings.json

摘要: 创建对应的映射类: public class AppSettings { //public Connectionstrings ConnectionStrings { get; set; } public string PurchaseUrl { get; set; } public string 阅读全文

posted @ 2022-09-24 11:33 宁静致远. 阅读(22) 评论(0) 推荐(0) 编辑

使用ConnectionMultiplexer访问Redis

摘要: appsettins.json 中的 Redis 连接字符串 "ConnectionStrings": { "DefaultConnection": "Server=DESKTOP-DABHN6U\\MSSQLSERVER2014;uid=sa;pwd=Lz38275292;database=New 阅读全文

posted @ 2022-09-24 10:26 宁静致远. 阅读(618) 评论(0) 推荐(0) 编辑