my app is asimple dotnetcore app, at CreateWebHostBuilder i have added AddAzureKeyVault with url, clientid and secret,
after moving from appsettings.json to AddAzureKeyVault i have noticed a minimum 15 sec delay in the application loading
stuck with it for a week now and not able to reduce the timedelay,
thanks in advance (desperate for a solution)
public static IWebHostBuilder CreateWebHostBuilder(string[] args) {
var app = WebHost.CreateDefaultBuilder(args)
.ConfigureAppConfiguration((context, builder) => {
builder.AddAzureKeyVault($ "https://{azureVault}.vault.azure.net/", azureClientId, azureClientSecret);
var watch = System.Diagnostics.Stopwatch.StartNew();
config = builder.Build();
watch.Stop();
})
.UseStartup < Startup > ();
return app;
}