diff --git a/aspnet-core/modules/DataDictionaryManagement/src/CompanyName.ProjectName.DataDictionaryManagement.Domain/DataDictionaries/Caches/DataDictionaryCacheItemInvalidato.cs b/aspnet-core/modules/DataDictionaryManagement/src/CompanyName.ProjectName.DataDictionaryManagement.Domain/DataDictionaries/Caches/DataDictionaryCacheItemInvalidator.cs similarity index 100% rename from aspnet-core/modules/DataDictionaryManagement/src/CompanyName.ProjectName.DataDictionaryManagement.Domain/DataDictionaries/Caches/DataDictionaryCacheItemInvalidato.cs rename to aspnet-core/modules/DataDictionaryManagement/src/CompanyName.ProjectName.DataDictionaryManagement.Domain/DataDictionaries/Caches/DataDictionaryCacheItemInvalidator.cs diff --git a/aspnet-core/modules/DataDictionaryManagement/src/CompanyName.ProjectName.DataDictionaryManagement.Domain/DataDictionaries/DataDictionaryManager.cs b/aspnet-core/modules/DataDictionaryManagement/src/CompanyName.ProjectName.DataDictionaryManagement.Domain/DataDictionaries/DataDictionaryManager.cs index ac574573..28317b51 100644 --- a/aspnet-core/modules/DataDictionaryManagement/src/CompanyName.ProjectName.DataDictionaryManagement.Domain/DataDictionaries/DataDictionaryManager.cs +++ b/aspnet-core/modules/DataDictionaryManagement/src/CompanyName.ProjectName.DataDictionaryManagement.Domain/DataDictionaries/DataDictionaryManager.cs @@ -89,7 +89,7 @@ namespace CompanyName.ProjectName.DataDictionaryManagement.DataDictionaries } entity.AddDetail(GuidGenerator.Create(), code, displayText, order, description); - return await _dataDictionaryRepository.UpdateAsync(entity); + return await _dataDictionaryRepository.InsertAsync(entity); } /// diff --git a/aspnet-core/services/host/CompanyName.ProjectName.HttpApi.Host/ProjectNameHttpApiHostModule.cs b/aspnet-core/services/host/CompanyName.ProjectName.HttpApi.Host/ProjectNameHttpApiHostModule.cs index d263e3bc..31d79413 100644 --- a/aspnet-core/services/host/CompanyName.ProjectName.HttpApi.Host/ProjectNameHttpApiHostModule.cs +++ b/aspnet-core/services/host/CompanyName.ProjectName.HttpApi.Host/ProjectNameHttpApiHostModule.cs @@ -264,7 +264,7 @@ namespace CompanyName.ProjectName private void ConfigurationStsHttpClient(ServiceConfigurationContext context) { - context.Services.AddHttpClient(HttpClientNameConsts.Sts, + context.Services.AddHttpClient(context.Services.GetConfiguration().GetSection("HttpClient:Sts:Name").Value, options => { options.BaseAddress = diff --git a/aspnet-core/services/host/CompanyName.ProjectName.HttpApi.Host/appsettings.json b/aspnet-core/services/host/CompanyName.ProjectName.HttpApi.Host/appsettings.json index 28000a8a..c7532e4d 100644 --- a/aspnet-core/services/host/CompanyName.ProjectName.HttpApi.Host/appsettings.json +++ b/aspnet-core/services/host/CompanyName.ProjectName.HttpApi.Host/appsettings.json @@ -48,6 +48,7 @@ }, "HttpClient": { "Sts": { + "Name": "Sts", "Url": "http://localhost:44354" } },