@@ -17,36 +17,36 @@ public sealed class LauncherOptions
1717 /// APM监控端口
1818 /// </summary>
1919 [ Option ( nameof ( APMPort ) , HelpText = "APM监控端口" ) ]
20- public int APMPort { get ; set ; }
20+ public ushort APMPort { get ; set ; }
2121
2222 /// <summary>
23- /// 是否是Debug 模式
23+ /// 是否是Debug打印日志模式,默认值为false
2424 /// </summary>
25- [ Option ( nameof ( IsDebug ) , HelpText = "是否是Debug 模式 " ) ]
25+ [ Option ( nameof ( IsDebug ) , Default = false , HelpText = "是否是Debug打印日志模式,默认值为false " ) ]
2626 public bool IsDebug { get ; set ; }
2727
2828 /// <summary>
29- /// 是否打印发送数据
29+ /// 是否打印发送数据,只有在IsDebug为true时有效,默认值为false
3030 /// </summary>
31- [ Option ( nameof ( IsDebugSend ) , HelpText = "是否打印发送数据" ) ]
31+ [ Option ( nameof ( IsDebugSend ) , Default = false , HelpText = "是否打印发送数据,只有在IsDebug为true时有效,默认值为false " ) ]
3232 public bool IsDebugSend { get ; set ; }
3333
3434 /// <summary>
35- /// 是否打印发送的心跳数据
35+ /// 是否打印发送的心跳数据,只有在IsDebugSend为true时有效,默认值为false
3636 /// </summary>
37- [ Option ( nameof ( IsDebugSendHeartBeat ) , HelpText = "是否打印发送的心跳数据" ) ]
37+ [ Option ( nameof ( IsDebugSendHeartBeat ) , Default = false , HelpText = "是否打印发送的心跳数据,只有在IsDebugSend为true时有效,默认值为false " ) ]
3838 public bool IsDebugSendHeartBeat { get ; set ; }
3939
4040 /// <summary>
41- /// 是否打印接收数据
41+ /// 是否打印接收数据,只有在IsDebug为true时有效,默认值为false
4242 /// </summary>
43- [ Option ( nameof ( IsDebugReceive ) , HelpText = "是否打印接收数据" ) ]
43+ [ Option ( nameof ( IsDebugReceive ) , Default = false , HelpText = "是否打印接收数据,只有在IsDebug为true时有效,默认值为false " ) ]
4444 public bool IsDebugReceive { get ; set ; }
4545
4646 /// <summary>
47- /// 是否打印接收的心跳数据
47+ /// 是否打印接收的心跳数据,只有在IsDebugReceive为true时有效,默认值为false
4848 /// </summary>
49- [ Option ( nameof ( IsDebugReceiveHeartBeat ) , HelpText = "是否打印接收的心跳数据" ) ]
49+ [ Option ( nameof ( IsDebugReceiveHeartBeat ) , Default = false , HelpText = "是否打印接收的心跳数据,只有在IsDebugReceive为true时有效,默认值为false " ) ]
5050 public bool IsDebugReceiveHeartBeat { get ; set ; }
5151
5252 /// <summary>
@@ -101,19 +101,19 @@ public sealed class LauncherOptions
101101 /// HTTP 端口
102102 /// </summary>
103103 [ Option ( nameof ( HttpPort ) , HelpText = "HTTP 端口" ) ]
104- public int HttpPort { get ; set ; }
104+ public ushort HttpPort { get ; set ; }
105105
106106 /// <summary>
107107 /// HTTPS 端口
108108 /// </summary>
109109 [ Option ( nameof ( HttpsPort ) , HelpText = "HTTPS 端口" ) ]
110- public int HttpsPort { get ; set ; }
110+ public ushort HttpsPort { get ; set ; }
111111
112112 /// <summary>
113113 /// WebSocket 端口
114114 /// </summary>
115115 [ Option ( nameof ( WsPort ) , HelpText = "WebSocket 端口" ) ]
116- public int WsPort { get ; set ; }
116+ public ushort WsPort { get ; set ; }
117117
118118 /// <summary>
119119 /// 游戏逻辑服务器的处理最小模块ID
@@ -131,7 +131,7 @@ public sealed class LauncherOptions
131131 /// WebSocket 加密端口
132132 /// </summary>
133133 [ Option ( nameof ( WssPort ) , HelpText = "WebSocket 加密端口" ) ]
134- public int WssPort { get ; set ; }
134+ public ushort WssPort { get ; set ; }
135135
136136 /// <summary>
137137 /// Wss 使用的证书路径
0 commit comments