Skip to content

Commit 36e8931

Browse files
Refactor Azure App Configuration setup: streamline configuration addition in Program.cs for improved readability.
1 parent 5aa8c30 commit 36e8931

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

src/XtremeIdiots.Portal.Web/Program.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,11 @@ public static IHostBuilder CreateHostBuilder(string[] args)
4343
ManagedIdentityClientId = managedIdentityClientId,
4444
});
4545

46-
configBuilder.AddAzureAppConfiguration(options =>
47-
{
48-
options.Connect(new Uri(appConfigEndpoint), credential)
49-
.Select(KeyFilter.Any, environmentLabel)
50-
.Select(KeyFilter.Any, LabelFilter.Null)
51-
.ConfigureKeyVault(kv => kv.SetCredential(credential));
52-
});
46+
configBuilder.AddAzureAppConfiguration(options => options
47+
.Connect(new Uri(appConfigEndpoint), credential)
48+
.Select(KeyFilter.Any, environmentLabel)
49+
.Select(KeyFilter.Any, LabelFilter.Null)
50+
.ConfigureKeyVault(kv => kv.SetCredential(credential)));
5351
})
5452
.ConfigureWebHostDefaults(webBuilder => webBuilder.UseStartup<Startup>());
5553
}

0 commit comments

Comments
 (0)