//------------------------------------------------------------------------------ // 此代码版权(除特别声明或在RRQMCore.XREF命名空间的代码)归作者本人若汝棋茗所有 // 源代码使用协议遵循本仓库的开源协议及附加协议,若本仓库没有设置,则按MIT开源协议授权 // CSDN博客:https://blog.csdn.net/qq_40374647 // 哔哩哔哩视频:https://space.bilibili.com/94253567 // Gitee源代码仓库:https://gitee.com/RRQM_Home // Github源代码仓库:https://github.com/RRQM // 交流QQ群:234762506 // 感谢您的下载和使用 //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ using System; using System.Reflection; namespace RRQMSocket.RPC { /// /// RPC函数实例 /// public class MethodInstance { /// /// 执行此RPC的实例 /// public IServerProvider Provider { get; internal set; } /// /// RPC函数 /// public MethodInfo Method { get; internal set; } /// /// RPC属性集合 /// public RPCAttribute[] RPCAttributes { get; internal set; } /// /// 方法唯一令箭 /// public int MethodToken { get; internal set; } /// /// 返回值类型,无返回值时为Null /// public Type ReturnType { get; internal set; } /// /// 参数类型集合,已处理out及ref,无参数时为空集合, /// public Type[] ParameterTypes { get; internal set; } /// /// 参数集合 /// public ParameterInfo[] Parameters { get; internal set; } /// /// 参数名集合 /// public string[] ParameterNames { get; internal set; } /// /// 是否异步执行 /// public bool Async { get; internal set; } /// /// 是否有引用类型 /// public bool IsByRef { get; internal set; } /// /// 是否可用 /// public bool IsEnable { get; internal set; } } }