public virtual object Execute(object host, ref NetCore.PkgReader pkg, UInt16 serialId, NetCore.NetConnection connect, ref NetCore.RPCRouter.RouteData routeInfo) { var parameter = CreateArgument(); IO.Serializer.SerializerHelper.ReadObject(parameter, pkg); var args = new object[] { pkg.GetUserFlags(), parameter, serialId, connect, routeInfo }; return(Method.Invoke(host, args)); }
public sealed override object Execute(object host, ref NetCore.PkgReader pkg, UInt16 serialId, NetCore.NetConnection connect, ref NetCore.RPCRouter.RouteData routeInfo) { unsafe { T arg = new T(); OnReadArugment(ref arg, ref pkg); return(OnCallMethod(host, pkg.GetUserFlags(), ref arg, serialId, connect, ref routeInfo)); } }