Update Program.cs

Modify format
This commit is contained in:
zedy 2021-05-28 11:37:34 +08:00 committed by GitHub
parent 42017a13b9
commit d4d784c522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
} }