Skip to content
代码片段 群组 项目
未验证 提交 a97746b7 编辑于 作者: Martin Costello's avatar Martin Costello 提交者: GitHub
浏览文件

Remove used-once field (#23693)

Remove a field that's only used in one place, and just pass the char directly to string.Join() on use.
上级 4b796c7b
No related branches found
No related tags found
无相关合并请求
...@@ -13,8 +13,6 @@ namespace Microsoft.AspNetCore.Hosting ...@@ -13,8 +13,6 @@ namespace Microsoft.AspNetCore.Hosting
{ {
public static class HostingAbstractionsWebHostBuilderExtensions public static class HostingAbstractionsWebHostBuilderExtensions
{ {
private static readonly string ServerUrlsSeparator = ";";
/// <summary> /// <summary>
/// Use the given configuration settings on the web host. /// Use the given configuration settings on the web host.
/// </summary> /// </summary>
...@@ -144,7 +142,7 @@ namespace Microsoft.AspNetCore.Hosting ...@@ -144,7 +142,7 @@ namespace Microsoft.AspNetCore.Hosting
throw new ArgumentNullException(nameof(urls)); throw new ArgumentNullException(nameof(urls));
} }
return hostBuilder.UseSetting(WebHostDefaults.ServerUrlsKey, string.Join(ServerUrlsSeparator, urls)); return hostBuilder.UseSetting(WebHostDefaults.ServerUrlsKey, string.Join(';', urls));
} }
/// <summary> /// <summary>
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册