File tree Expand file tree Collapse file tree
src/Microsoft.Identity.Web.DownstreamApi Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments