提交 553aae86 编写于 作者: T tanghai

修复一个消息分发到IL层的bug

上级 4bd92a60
......@@ -40,7 +40,7 @@ namespace Model
{
appDomain = Init.Instance.AppDomain;
this.instance = this.appDomain.Instantiate(type.FullName);
this.method = this.instance.Type.GetMethod(methodName);
this.method = this.instance.Type.GetMethod(methodName, 2);
int n = this.method.ParameterCount;
this.param = new object[n];
}
......@@ -113,7 +113,7 @@ namespace Model
}
MessageHandlerAttribute messageHandlerAttribute = (MessageHandlerAttribute)attrs[0];
#if ILRuntime
IMessageMethod iMessageMethod = new IMessageILMethod(type, "Run");
IMessageMethod iMessageMethod = new IMessageILMethod(type, "Handle");
#else
IMHandler iMHandler = (IMHandler)Activator.CreateInstance(type);
IMessageMethod iMessageMethod = new IMessageMonoMethod(iMHandler);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册