学海无涯

导航

上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 45 下一页

2022年10月25日 #

Dapr 概念

摘要: Dapr 帮助你和团队构造分布式应用程序,同时降低体系结构和操作方面的复杂性。 Dapr 的目标之一是为微服务应用程序提供云原生功能。 Dapr - Dapr 是一种分布式应用程序运行时,它可以简化生成分布式应用程序的方式。 它公开构造块和可插入组件的体系结构。 Dapr 提供了一种动态胶水,将应用 阅读全文

posted @ 2022-10-25 08:51 宁静致远. 阅读(856) 评论(0) 推荐(0)

Dapr 状态管理

摘要: 将 Dapr.Client NuGet 包添加到应用程序: Dapr.Client 打开 Program.cs using Dapr.Client; const string storeName = "statestore"; const string key = "counter"; var da 阅读全文

posted @ 2022-10-25 08:48 宁静致远. 阅读(117) 评论(0) 推荐(0)

Dapr 服务调用

摘要: 服务调用构建块优势:服务发现、自动重试、消息加密(使用 mTLS)以及改进的可观测性。 Dapr 调用API 默认情况下,Dapr 挎斗 (SideCar) 依赖于网关来限制对其公共 API 的访问。 因此,请清除“为 HTTPS 配置”复选框: 打开 NuGet 包管理器,添加以下包 Dapr.A 阅读全文

posted @ 2022-10-25 08:37 宁静致远. 阅读(203) 评论(0) 推荐(0)

2022年10月23日 #

开源项目

摘要: 验证,简化无效输入的验证 https://github.com/ardalis/GuardClauses Resources Clean Architecture Solution Template https://github.com/ardalis/cleanarchitecture For W 阅读全文

posted @ 2022-10-23 13:21 宁静致远. 阅读(89) 评论(0) 推荐(0)

CleanArchitecture 清洁架构

摘要: https://github.com/ardalis/CleanArchitecture Questions Why do we separate applications into multiple projects? 为什么我们要将应用程序分成多个项目? What are some princi 阅读全文

posted @ 2022-10-23 11:23 宁静致远. 阅读(916) 评论(0) 推荐(0)

CleanArchitecture 设计决策和依赖关系

摘要: 设计决策和依赖关系 Core 核心项目 Core 项目是 Clean Architecture 设计的中心,所有其他项目依赖项都应指向它。因此,它几乎没有外部依赖项。在这种情况下,一个例外是System.Reflection.TypeExtensions包,它用于ValueObject帮助实现其IE 阅读全文

posted @ 2022-10-23 11:12 宁静致远. 阅读(80) 评论(0) 推荐(0)

2022年10月22日 #

DDD

摘要: 阅读全文

posted @ 2022-10-22 11:09 宁静致远. 阅读(58) 评论(0) 推荐(0)

2022年10月21日 #

HttpService

摘要: using System.Net.Http; using System.Text; using System.Text.Json; using System.Threading.Tasks; using BlazorShared; using BlazorShared.Models; using M 阅读全文

posted @ 2022-10-21 11:01 宁静致远. 阅读(87) 评论(0) 推荐(0)

生成 Token

摘要: using System.Threading.Tasks; namespace Microsoft.eShopWeb.ApplicationCore.Interfaces; public interface ITokenClaimsService { Task<string> GetTokenAsy 阅读全文

posted @ 2022-10-21 10:58 宁静致远. 阅读(61) 评论(0) 推荐(0)

清洁架构之 eShopOnWeb

摘要: 共享内核层 Shared Kernel 可以将任何需要共享的类型放在此层 核心层 Core 基础设施层 Infrastructure Web 层 阅读全文

posted @ 2022-10-21 09:52 宁静致远. 阅读(94) 评论(0) 推荐(0)

上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 45 下一页