From 23b8ec05a6dd5494bc3e8a283e897cfa3715a9ce Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Mon, 13 Dec 2021 11:43:00 +0800 Subject: [PATCH] fix(workflow): use IServiceCollention.GetConfiguration() --- .../LINGYUN.Abp.BlobStoring.OssManagement/README.md | 1 + .../WorkflowManagementHttpApiHostModule.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/aspnet-core/modules/oss-management/LINGYUN.Abp.BlobStoring.OssManagement/README.md b/aspnet-core/modules/oss-management/LINGYUN.Abp.BlobStoring.OssManagement/README.md index 752a7b9ec..58e9f6168 100644 --- a/aspnet-core/modules/oss-management/LINGYUN.Abp.BlobStoring.OssManagement/README.md +++ b/aspnet-core/modules/oss-management/LINGYUN.Abp.BlobStoring.OssManagement/README.md @@ -40,6 +40,7 @@ public class YouProjectModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { + var configuration = context.Services.GetConfiguration(); Configure(options => { services.ExecutePreConfiguredActions(options); diff --git a/aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/WorkflowManagementHttpApiHostModule.cs b/aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/WorkflowManagementHttpApiHostModule.cs index f27795517..35ca7ab1b 100644 --- a/aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/WorkflowManagementHttpApiHostModule.cs +++ b/aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/WorkflowManagementHttpApiHostModule.cs @@ -75,7 +75,7 @@ namespace LY.MicroService.WorkflowManagement public override void ConfigureServices(ServiceConfigurationContext context) { var hostingEnvironment = context.Services.GetHostingEnvironment(); - var configuration = hostingEnvironment.BuildConfiguration(); + var configuration = context.Services.GetConfiguration(); ConfigureDbContext(); ConfigureLocalization();