Skip to content

Commit 1f2e0cd

Browse files
committed
[删除] APM端口
1 parent fe7678b commit 1f2e0cd

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

GameFrameX.StartUp/Options/LauncherOptions.cs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ public sealed class LauncherOptions
1717
[GrafanaLokiLabelTag]
1818
public string ServerType { get; set; }
1919

20-
/// <summary>
21-
/// APM监控端口
22-
/// </summary>
23-
[Option(nameof(APMPort), Description = "APM监控端口")]
24-
[Obsolete("MetricsPort 代替")]
25-
public ushort APMPort { get; set; }
26-
2720
/// <summary>
2821
/// Metrics 端口
2922
/// </summary>
@@ -405,18 +398,6 @@ public sealed class LauncherOptions
405398
[GrafanaLokiLabelTag]
406399
public string Label { get; set; }
407400

408-
/// <summary>
409-
/// 检查APM监控端口
410-
/// </summary>
411-
/// <exception cref="ArgumentOutOfRangeException"></exception>
412-
internal void CheckApmPort()
413-
{
414-
if (APMPort <= 10000 || APMPort >= ushort.MaxValue)
415-
{
416-
throw new ArgumentOutOfRangeException(nameof(APMPort), "APMPort必须大于10000且小于等于65535");
417-
}
418-
}
419-
420401
/// <summary>
421402
/// 检查ServerId
422403
/// </summary>

0 commit comments

Comments
 (0)