Skip to content

Commit 33005e6

Browse files
committed
refactor(Options): 重命名API相关属性名以更准确表达用途
将ClientApiUrl和HubApiUrl分别重命名为ClientApiHost和HubApiHost,使属性名更准确地反映其作为主机地址而非完整URL的用途
1 parent 9b7ad2c commit 33005e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

GameFrameX.StartUp/Options/LauncherOptions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,16 +420,16 @@ public sealed class LauncherOptions
420420
/// <summary>
421421
/// 客户端API地址
422422
/// </summary>
423-
[Option(nameof(ClientApiUrl), Description = "客户端API地址")]
423+
[Option(nameof(ClientApiHost), Description = "客户端API地址")]
424424
[DefaultValue("")]
425-
public string ClientApiUrl { get; set; }
425+
public string ClientApiHost { get; set; }
426426

427427
/// <summary>
428428
/// HubAPI地址
429429
/// </summary>
430-
[Option(nameof(HubApiUrl), Description = "HubAPI地址")]
430+
[Option(nameof(HubApiHost), Description = "HubAPI地址")]
431431
[DefaultValue("")]
432-
public string HubApiUrl { get; set; }
432+
public string HubApiHost { get; set; }
433433

434434
/// <summary>
435435
/// 心跳间隔(毫秒),默认 5000 毫秒

0 commit comments

Comments
 (0)