We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7c17e8 commit 0fcf08cCopy full SHA for 0fcf08c
1 file changed
GameFrameX.Hotfix/Logic/DiscoveryCenter/DiscoveryCenterComponentAgent.cs
@@ -43,8 +43,23 @@ internal void SetAppStartUp(AppStartUpBase appStartUpBase)
43
_appStartUpBase = appStartUpBase;
44
}
45
46
+ /// <summary>
47
+ /// 发送消息给发现中心组件
48
+ /// </summary>
49
+ /// <param name="message">发送的消息</param>
50
public void SendToDiscoveryCenter(MessageObject message)
51
{
52
_appStartUpBase?.Send(message);
53
54
+
55
56
+ /// 调用发现中心组件
57
58
+ /// <param name="message">调用消息</param>
59
+ /// <typeparam name="T">响应消息类型</typeparam>
60
+ /// <returns>响应结果</returns>
61
+ public Task<IRpcResult> CallDiscoveryCenter<T>(MessageObject message) where T : IResponseMessage, new()
62
+ {
63
+ return _appStartUpBase?.Call<T>(message);
64
+ }
65
0 commit comments