|
|
@ -89,8 +89,7 @@ IConfiguration GetConfiguration() |
|
|
|
|
|
|
|
if (config.GetValue<bool>("UseVault", false)) |
|
|
|
{ |
|
|
|
builder.AddAzureKeyVault( |
|
|
|
new Uri($"https://{config["Vault:Name"]}.vault.azure.net/"),new DefaultAzureCredential()); |
|
|
|
builder.AddAzureKeyVault(new Uri($"https://{config["Vault:Name"]}.vault.azure.net/"),new DefaultAzureCredential()); |
|
|
|
} |
|
|
|
|
|
|
|
return builder.Build(); |
|
|
@ -108,4 +107,4 @@ public class Program |
|
|
|
|
|
|
|
public static string Namespace = typeof(Startup).Namespace; |
|
|
|
public static string AppName = Namespace.Substring(Namespace.LastIndexOf('.', Namespace.LastIndexOf('.') - 1) + 1); |
|
|
|
} |
|
|
|
} |