Skip to content

Commit 7594f23

Browse files
committed
2 parents a7bbee9 + 28c5fab commit 7594f23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Genocs.Secrets.AzureKeyVault/Extensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public static IHostBuilder UseAzureKeyVault(
3030
{
3131
sectionName = AzureKeyVaultOptions.Position;
3232
}
33-
34-
var settings = ctx.Configuration.GetOptions<AzureKeyVaultOptions>(sectionName);
33+
var config = cfg.Build();
34+
var settings = config.GetOptions<AzureKeyVaultOptions>(sectionName);
3535
if (!settings.Enabled)
3636
{
3737
return;
@@ -92,4 +92,4 @@ public static WebApplicationBuilder UseAzureKeyVault(this WebApplicationBuilder
9292

9393
return builder;
9494
}
95-
}
95+
}

0 commit comments

Comments
 (0)