一款简单易用的基础网络通讯组件库。

RpcAttribute 类

Rpc方法属性基类

Definition

命名空间: TouchSocket.Rpc
程序集: TouchSocket.Rpc (在 TouchSocket.Rpc.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public abstract class RpcAttribute : Attribute
Inheritance
Object    Attribute    RpcAttribute
Derived

构造函数

RpcAttribute 构造函数

属性

ClassCodeGenerator 类生成器
Exceptions 异常提示
GeneratorFlag 生成代码
GenericConstraintTypes 生成泛型方法的约束
InvokeKey 调用键。
MethodInvoke 是否仅以函数名调用,当为True是,调用时仅需要传入方法名即可。
MethodName 重新指定生成的函数名称。可以使用类似“JsonRpc_{0}”的模板格式。
Namespaces 生成代理时,额外的命名空间
PropertyNames 获取或设置属性名称的字典。
TypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(继承自 Attribute。)

方法

EqualsReturns a value that indicates whether this instance is equal to a specified object.
(继承自 Attribute。)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(继承自 Object。)
GetDescription 获取注释信息
GetExtensionInstanceMethod 生成扩展函数的内容
GetExtensionsMethodProxyCode 获取扩展的代理代码
GetGenericConstraintTypes 获取生成的函数泛型限定名称。默认IRpcClient
GetHashCodeReturns the hash code for this instance.
(继承自 Attribute。)
GetInstanceMethod 生成实现函数的内容
GetInstanceProxyCode 获取生成实体类时的代码块
GetInterfaceProxyCode 获取接口的代理代码
GetInvokeKey 获取调用键
GetInvokeOption 获取调用配置
GetMethodName 获取生成的函数名称
GetParameters 根据指定的RPC方法获取参数信息。
GetProxyParameterName 从类型获取代理名
GetReturn 获取返回值
GetTypeGets the Type of the current instance.
(继承自 Object。)
IsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(继承自 Attribute。)
MatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(继承自 Attribute。)
MemberwiseCloneCreates a shallow copy of the current Object.
(继承自 Object。)
ToStringReturns a string that represents the current object.
(继承自 Object。)

扩展方法

Map
(由 Mapper 定义。)
Map
(由 Mapper 定义。)
MapTTarget
(由 Mapper 定义。)
ToJsonString 转换为Json
(由 SerializeConvert 定义。)

参见