You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GameFrameX.StartUp/ServiceClient/GameAppServiceClient.cs
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ private async Task Handler()
153
153
154
154
if(sessionData!=null)
155
155
{
156
-
MessageSendHandle(sessionData?.RequestMessage);
156
+
MessageSendHandle(sessionData.RequestMessage);
157
157
}
158
158
else
159
159
{
@@ -252,6 +252,11 @@ private void SendHeartBeat()
252
252
/// <exception cref="ArgumentOutOfRangeException">Thrown when messageObject.MessageId is greater than or equal to 0 / 当messageObject.MessageId大于等于0时抛出</exception>
253
253
publicvoidSend(MessageObjectmessageObject)
254
254
{
255
+
if(messageObject.MessageId==default)
256
+
{
257
+
MessageProtoHelper.SetMessageId(messageObject);
258
+
}
259
+
255
260
if(messageObject.MessageId>=0)
256
261
{
257
262
thrownewArgumentOutOfRangeException(nameof(messageObject),"messageObject.MessageId must be less than 0");
/// <exception cref="ArgumentOutOfRangeException">Thrown when messageObject.MessageId is greater than or equal to 0 / 当messageObject.MessageId大于等于0时抛出</exception>
0 commit comments