refactor: Adjusted the structure of the configuration file.

BREAKING CHANGE: Adjusted the internal structure of the config.yaml file, removed the top-level hierarchy.
This commit is contained in:
real-zony
2024-07-02 21:22:40 +08:00
parent 2dca5239f5
commit 8b5d5c64b0
6 changed files with 134 additions and 125 deletions

View File

@@ -47,7 +47,7 @@ namespace ZonyLrcTools.Common.Infrastructure.DependencyInject
.AddYamlFile("config.yaml")
.Build();
services.Configure<GlobalOptions>(configuration.GetSection("globalOption"));
services.Configure<GlobalOptions>(configuration);
return services;
}