Skip to content

Commit 0ee6a97

Browse files
committed
feat(StartUp): 添加游戏启动配置项和标签名称
添加 IsRegisterToDiscoveryCenter 属性控制是否注册到发现中心 为游戏服务配置添加 TagName 标识
1 parent 03fdf64 commit 0ee6a97

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

GameFrameX.Launcher/StartUp/AppStartUpGame.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ namespace GameFrameX.Launcher.StartUp;
4040
[StartUpTag(GlobalConst.GameServiceName)]
4141
internal sealed class AppStartUpGame : AppStartUpBase
4242
{
43+
protected override bool IsRegisterToDiscoveryCenter { get; set; } = false;
44+
4345
public override async Task StartAsync()
4446
{
4547
string exitMessage = null;
@@ -106,6 +108,7 @@ protected override void Init()
106108
HttpIsDevelopment = true,
107109
MaxModuleId = 9999,
108110
DiscoveryCenterHost = "127.0.0.1",
111+
TagName = "GameFrameX",
109112
DiscoveryCenterPort = 21001,
110113
DataBaseUrl = "mongodb+srv://gameframex:f9v42aU9DVeFNfAF@gameframex.8taphic.mongodb.net/?retryWrites=true&w=majority",
111114
DataBaseName = "gameframex",

0 commit comments

Comments
 (0)