Skip to content

Commit e2a1ea0

Browse files
committed
Adjust the fix
1 parent c70a504 commit e2a1ea0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Microsoft.Identity.Web.DownstreamApi/DownstreamApiExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ public static IServiceCollection AddDownstreamApis(
7676
{
7777
// lambda expression is needed as a workaround for IL2026 and IL3050 so the ConfigBinder Source Generator works
7878
// https://github.com/dotnet/aspire/blob/2ed738cb524f7ce82490f0da33a1ea3e194011e8/src/Components/Aspire.Azure.Messaging.ServiceBus/AspireServiceBusExtensions.cs#L105
79-
services.Configure<DownstreamApiOptions>(optionsForService, bindOptions => configurationSection.GetSection(optionsForService).Bind(bindOptions));
79+
IConfigurationSection optionsForServiceSection = configurationSection.GetSection(optionsForService);
80+
services.Configure<DownstreamApiOptions>(optionsForService, bindOptions => optionsForServiceSection.Bind(bindOptions));
8081
}
8182
RegisterDownstreamApi(services);
8283
return services;

0 commit comments

Comments
 (0)