Skip to content

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

@t13801206

Description

@t13801206

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"];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions