Skip to content

Managing settings in JSON can be tedious when making changes or adding configuration values, so I implemented a parser to manage them in YAML and make it possible to call it using DI.

Notifications You must be signed in to change notification settings

ochtum/YamlSettingTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YamlSettingTest

目的

設定をJSONで管理すると、変更するときや設定値を追加するときに面倒くさいので、YAMLで管理できるようにParserを実装し、DIで呼び出せるようにしました。

YAMLパーサー

  • YAML-Parser

    • YamlSettingTest\YamlSettingTest\Modules\YamlParser.cs
  • YAML-Service

    • YamlSettingTest\YamlSettingTest\Services\IYamlConfigService.cs
    • YamlSettingTest\YamlSettingTest\Services\YamlConfigService.cs

サンプルソース

  • 設定ファイルサンプル
    • YamlSettingTest\YamlSettingTest\appsettings.yml
  • DIサンプル
    • YamlSettingTest\YamlSettingTest\Program.cs
    • YamlSettingTest\YamlSettingTest\Components\Pages\Weather.razor

About

Managing settings in JSON can be tedious when making changes or adding configuration values, so I implemented a parser to manage them in YAML and make it possible to call it using DI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published