Merged
Conversation
在 `Thor.sln` 文件中,添加了两个新项目 `Thor.AppHost` 和 `Thor.ServiceDefaults`,并为它们配置了调试和发布的构建设置。 在 `Program.cs` 文件中,添加了 `builder.AddServiceDefaults();` 和 `builder.MapDefaultEndpoints();` 方法调用,并添加了创建和运行分布式应用程序的代码。 在 `Thor.Service.csproj` 文件中,添加了对 `Thor.ServiceDefaults` 项目的引用。 添加了 `appsettings.Development.json` 和 `appsettings.json` 文件,配置了日志记录级别。 添加了 `Thor.AppHost.csproj` 和 `Thor.ServiceDefaults.csproj` 文件,配置了项目属性和引用。 添加了 `launchSettings.json` 文件,配置了启动设置和环境变量。 添加了 `Extensions.cs` 文件,定义了扩展方法以添加常见的 .NET Aspire 服务,如服务发现、弹性、健康检查和 OpenTelemetry。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several new projects and enhances existing functionality in the
Thorsolution. The key changes include the addition of new projects (Thor.AppHostandThor.ServiceDefaults), updates to project references, and enhancements to theThor.Serviceproject.New Projects Added:
Thor.AppHostproject: Added to the solution and configured with a newProgram.csandlaunchSettings.json. (Thor.sln,src/Thor.AppHost/Thor.AppHost.csproj,src/Thor.AppHost/Program.cs,src/Thor.AppHost/Properties/launchSettings.json) [1] [2] [3] [4] [5]Thor.ServiceDefaultsproject: Introduced to provide default configurations for services, including health checks and OpenTelemetry. (Thor.sln,src/Thor.ServiceDefaults/Extensions.cs,src/Thor.ServiceDefaults/Thor.ServiceDefaults.csproj) [1] [2] [3] [4]Enhancements to
Thor.Service:Thor.ServiceDefaultsas a project reference and updatedProgram.csto include service defaults and map default endpoints. (src/Thor.Service/Thor.Service.csproj,src/Thor.Service/Program.cs) [1] [2]Program.cs. (src/Thor.Service/Program.cs) [1] [2]src/Thor.Service/Thor.Service.csproj)src/Thor.Service/Program.cs)Configuration Files:
appsettings.jsonandappsettings.Development.jsonto theThor.AppHostproject for logging configuration. (src/Thor.AppHost/appsettings.Development.json,src/Thor.AppHost/appsettings.json) [1] [2]