Browse Source

fix(workflow): use IServiceCollention.GetConfiguration()

pull/439/head
cKey 4 years ago
parent
commit
23b8ec05a6
  1. 1
      aspnet-core/modules/oss-management/LINGYUN.Abp.BlobStoring.OssManagement/README.md
  2. 2
      aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/WorkflowManagementHttpApiHostModule.cs

1
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<AbpBlobStoringOptions>(options =>
{
services.ExecutePreConfiguredActions(options);

2
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();

Loading…
Cancel
Save