public sealed class RpcMethod : Method
Public NotInheritable Class RpcMethod
Inherits Method
[<SealedAttribute>]
type RpcMethod =
class
inherit Method
end
RpcMethod(MethodInfo) | 实例化一个Rpc调用函数,并在方法声明的类上操作 |
RpcMethod(MethodInfo, Type, Type) | 实例化一个Rpc调用函数,并在指定类上操作 |
DynamicBuilderType |
获取调用器的构建类型。
(继承自 Method。) |
HasCallContext | 是否包含调用上下文 |
HasReturn |
是否具有返回值。当返回值为Task时,也会认为没有返回值。
(继承自 Method。) |
Info |
方法信息
(继承自 Method。) |
IsEnable | 是否可用 |
Name |
获取方法名
(继承自 Method。) |
ParameterNames | 参数名集合 |
Parameters | 参数集合 |
ParameterTypes | 参数类型集合,已处理out及ref,无参数时为空集合, |
ReturnType |
返回值类型。
当方法为void或task时,为null 当方法为task泛型时,为泛型元素类型 (继承自 Method。) |
RpcAttributes | Rpc属性集合 |
ServerFromType | 注册类型 |
ServerRpcAttributes | Rpc服务属性集合 |
ServerToType | 实例类型 |
TaskType |
返回值的Task类型。
(继承自 Method。) |
ToMethodInfo | 实现方法。 |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
GetAttribute(Type) | 获取指定类型属性标签 |
GetAttributeT | 获取指定类型属性标签 |
GetDescription | 描述属性 |
GetFilters | 筛选器 |
GetHashCode | Serves as the default hash function. (继承自 Object。) |
GetNormalParameters | 获取常规Rpc参数。 |
GetType | Gets the Type of the current instance. (继承自 Object。) |
Invoke |
执行方法。
(继承自 Method。) |
InvokeAsync(Object, Object) |
异步执行方法。
(继承自 Method。) |
InvokeObjectAsync |
执行方法。
当方法为void或task时,会异常 当方法为task泛型时,会await后的值 支持调用方为UI主线程。 (继承自 Method。) |
ToString | Returns a string that represents the current object. (继承自 Object。) |
Map | (由 Mapper 定义。) |
Map | (由 Mapper 定义。) |
MapTTarget | (由 Mapper 定义。) |
ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |