Skip to content

Commit

Permalink
Update AzureAppConfigurationExtensions.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed May 6, 2024
1 parent 7bdfa3a commit 3c35ba1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ public static WebApplicationBuilder AddAzureAppConfiguration(this WebApplication
return builder;
}

builder.Services.AddAzureAppConfiguration();

// This is set by Azure Service Connector
var connectionString = builder.Configuration.GetConnectionString("")
?? throw new InvalidOperationException(
"Failed to find connection string to Azure App Configuration. " +
Expand All @@ -33,6 +31,8 @@ public static WebApplicationBuilder AddAzureAppConfiguration(this WebApplication
refreshOptions.Register("Sentinel", refreshAll: true))
.UseFeatureFlags());

builder.Services.AddAzureAppConfiguration();

return builder;
}
}

0 comments on commit 3c35ba1

Please sign in to comment.