From bda85b50db66cc1204a0e13a1e263b0656cdba2d Mon Sep 17 00:00:00 2001 From: "SHUANGBAOJUN\\Administrator" <11> Date: Thu, 25 Nov 2021 00:09:05 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20=E6=97=A5=E5=B8=B8Bug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...eItemInvalidato.cs => DataDictionaryCacheItemInvalidator.cs} | 0 .../DataDictionaries/DataDictionaryManager.cs | 2 +- .../ProjectNameHttpApiHostModule.cs | 2 +- .../host/CompanyName.ProjectName.HttpApi.Host/appsettings.json | 1 + 4 files changed, 3 insertions(+), 2 deletions(-) rename aspnet-core/modules/DataDictionaryManagement/src/CompanyName.ProjectName.DataDictionaryManagement.Domain/DataDictionaries/Caches/{DataDictionaryCacheItemInvalidato.cs => DataDictionaryCacheItemInvalidator.cs} (100%) 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 c2321d37..7df32805 100644 --- a/aspnet-core/services/host/CompanyName.ProjectName.HttpApi.Host/ProjectNameHttpApiHostModule.cs +++ b/aspnet-core/services/host/CompanyName.ProjectName.HttpApi.Host/ProjectNameHttpApiHostModule.cs @@ -263,7 +263,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" } },