Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

構成ファイル(appsettings.json, appsetting.Development.json)のキーが統一されていない #2

Open
t13801206 opened this issue Jan 22, 2022 · 0 comments

Comments

@t13801206
Copy link

https://github.com/nrslib/itddd/tree/master/Layered_UsingInternal

README.mdには、2つある.jsonファイルのsetupを変更するよう書かれてありますが
asppsetting.Development.jsonにはsetupキーがありません(代わりにSetupNameキーがあります)。

また、ソースコードでは[Dependency:SetupName"]キーを参照しています。

どのモジュールを利用するかの設定はプロダクション用設定の appsettings.json とデバッグ用設定の appsetting.Development.json によって制御できます。

appsettings.json

"Dependency": {
  "setup": "InMemoryModuleDependencySetup"
}

asppsetting.Development.json

"Dependency": {
  "SetupName": "InMemoryModuleDependencySetup"
}

DependencySetupFactory.cs

var setupName = configuration["Dependency:SetupName"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant