Browse Source

fix(workflow): use IServiceCollention.GetConfiguration()

5.0.0-rc.2
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) public override void ConfigureServices(ServiceConfigurationContext context)
{ {
var configuration = context.Services.GetConfiguration();
Configure<AbpBlobStoringOptions>(options => Configure<AbpBlobStoringOptions>(options =>
{ {
services.ExecutePreConfiguredActions(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) public override void ConfigureServices(ServiceConfigurationContext context)
{ {
var hostingEnvironment = context.Services.GetHostingEnvironment(); var hostingEnvironment = context.Services.GetHostingEnvironment();
var configuration = hostingEnvironment.BuildConfiguration(); var configuration = context.Services.GetConfiguration();
ConfigureDbContext(); ConfigureDbContext();
ConfigureLocalization(); ConfigureLocalization();

Loading…
Cancel
Save