fix conflict

This commit is contained in:
Wenjie Yu 2021-05-31 09:35:22 +08:00
commit 183f1ef256

View File

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