Skip to content

Commit d1e2079

Browse files
committed
[增加](设置): 增加Actor的配置参数
1 parent 0c8f4d2 commit d1e2079

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

GameFrameX.StartUp/Options/LauncherOptions.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,18 @@ public sealed class LauncherOptions
183183
[Option(nameof(SaveDataBatchTimeOut), Default = 30_000, HelpText = "保存数据的超时时间(毫秒),默认值为30秒")]
184184
public int SaveDataBatchTimeOut { get; set; } = 30_000;
185185

186+
/// <summary>
187+
/// Actor 执行任务超时时间(毫秒),默认值为30秒
188+
/// </summary>
189+
[Option(nameof(ActorTimeOut), Default = 30_000, HelpText = "Actor 执行任务超时时间(毫秒),默认值为30秒")]
190+
public int ActorTimeOut { get; set; } = 30_000;
191+
192+
/// <summary>
193+
/// Actor 执行任务队列超时时间(毫秒),默认值为30秒
194+
/// </summary>
195+
[Option(nameof(ActorQueueTimeOut), Default = 30_000, HelpText = "Actor 执行任务队列超时时间(毫秒),默认值为30秒")]
196+
public int ActorQueueTimeOut { get; set; } = 30_000;
197+
186198
/// <summary>
187199
/// 内部IP
188200
/// </summary>

GameFrameX.Utility/Setting/AppSetting.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,16 @@ public string ToFormatString()
218218
/// </summary>
219219
public int SaveDataBatchTimeOut { get; set; } = 30_000;
220220

221+
/// <summary>
222+
/// Actor 执行任务超时时间(毫秒),默认值为30秒
223+
/// </summary>
224+
public int ActorTimeOut { get; set; } = 30_000;
225+
226+
/// <summary>
227+
/// Actor 执行任务队列超时时间(毫秒),默认值为30秒
228+
/// </summary>
229+
public int ActorQueueTimeOut { get; set; } = 30_000;
230+
221231
/// <summary>
222232
/// 内部IP地址
223233
/// </summary>

0 commit comments

Comments
 (0)