|
|
@@ -57,6 +57,14 @@ namespace ET
|
|
|
}
|
|
|
|
|
|
Type messageType = imHandler.GetRequestType();
|
|
|
+ Type responseType = OpcodeTypeComponent.Instance.GetResponseType(messageType);
|
|
|
+
|
|
|
+ Type handleResponseType = imHandler.GetResponseType();
|
|
|
+ if (handleResponseType != null && handleResponseType != responseType)
|
|
|
+ {
|
|
|
+ throw new Exception($"message handler response type error: {messageType.FullName}");
|
|
|
+ }
|
|
|
+
|
|
|
self.ActorMessageHandlers.Add(messageType, imHandler);
|
|
|
}
|
|
|
}
|