Skip to content

Commit

Permalink
[修改]1. 修改连接到发现中心的链接器
Browse files Browse the repository at this point in the history
  • Loading branch information
AlianBlank committed Nov 30, 2024
1 parent 74e98c1 commit 20a9746
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion GameFrameX.Hotfix/StartUp/AppStartUpHotfixGameByMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public override async Task StartAsync()
{
// 启动网络服务
await StartServerAsync<ClientMessageDecoderHandler, ClientMessageEncoderHandler>(new DefaultMessageCompressHandler(), new DefaultMessageDecompressHandler());
StartServer();
// 启动Http服务
// await HttpServer.Start(Setting.HttpPort, Setting.HttpsPort, HotfixManager.GetHttpHandler);
await base.StartAsync();
Expand Down
4 changes: 2 additions & 2 deletions GameFrameX.Launcher/StartUp/AppStartUpService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public override Task StartAsync()
_discoveryCenterChannelHelper?.Start(Setting.DiscoveryCenterIp, Setting.DiscoveryCenterPort);
}

GlobalSettings.IsAppRunning = true;
return Task.CompletedTask;
}

Expand Down Expand Up @@ -63,8 +64,7 @@ protected ConnectChannelHelper DiscoveryCenterChannelHelper

protected async void StartServer()
{
// _discoveryCenterChannelHelper = new ConnectChannelHelper(Setting, MessageEncoderHandler, MessageDecoderHandler, DiscoveryCenterMessageHandler);
GlobalSettings.IsAppRunning = true;
_discoveryCenterChannelHelper = new ConnectChannelHelper(Setting, MessageEncoderHandler, MessageDecoderHandler, DiscoveryCenterMessageHandler);
}

private void DiscoveryCenterMessageHandler(IMessage message)
Expand Down

0 comments on commit 20a9746

Please sign in to comment.