Skip to content

Feature/aspire#24

Merged
239573049 merged 2 commits intomainfrom
feature/aspire
Oct 7, 2024
Merged

Feature/aspire#24
239573049 merged 2 commits intomainfrom
feature/aspire

Conversation

@239573049
Copy link
Copy Markdown
Member

This pull request introduces several new projects and enhances existing functionality in the Thor solution. The key changes include the addition of new projects (Thor.AppHost and Thor.ServiceDefaults), updates to project references, and enhancements to the Thor.Service project.

New Projects Added:

  • Thor.AppHost project: Added to the solution and configured with a new Program.cs and launchSettings.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.ServiceDefaults project: 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:

  • Added Thor.ServiceDefaults as a project reference and updated Program.cs to include service defaults and map default endpoints. (src/Thor.Service/Thor.Service.csproj, src/Thor.Service/Program.cs) [1] [2]
  • Updated dependencies and cleaned up unused imports in Program.cs. (src/Thor.Service/Program.cs) [1] [2]
  • Added a new Serilog package for OpenTelemetry support. (src/Thor.Service/Thor.Service.csproj)
  • Minor refactoring for consistency in variable names. (src/Thor.Service/Program.cs)

Configuration Files:

  • Added appsettings.json and appsettings.Development.json to the Thor.AppHost project for logging configuration. (src/Thor.AppHost/appsettings.Development.json, src/Thor.AppHost/appsettings.json) [1] [2]

在 `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。
@239573049 239573049 merged commit caca74f into main Oct 7, 2024
@239573049 239573049 deleted the feature/aspire branch October 7, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant