diff --git a/src/Cnblogs.Architecture.Ddd.Infrastructure.FileProviders.AliyunOss/CqrsInjectorExtensions.cs b/src/Cnblogs.Architecture.Ddd.Infrastructure.FileProviders.AliyunOss/CqrsInjectorExtensions.cs index 593a29a..b03c7cb 100644 --- a/src/Cnblogs.Architecture.Ddd.Infrastructure.FileProviders.AliyunOss/CqrsInjectorExtensions.cs +++ b/src/Cnblogs.Architecture.Ddd.Infrastructure.FileProviders.AliyunOss/CqrsInjectorExtensions.cs @@ -23,6 +23,7 @@ public static CqrsInjector UseAliyunOssFileProvider( string configurationSectionName = "ossClient") { injector.Services.AddOssClient(configuration, configurationSectionName); + injector.Services.Configure(configuration.GetSection(configurationSectionName)); return injector.UseFileProvider(); } }