Table of Contents

Class RpcTargetMetadata.TargetMethodMetadata

Namespace
StreamJsonRpc
Assembly
StreamJsonRpc.dll

Represents metadata about an RPC target method.

public class RpcTargetMetadata.TargetMethodMetadata
Inheritance
RpcTargetMetadata.TargetMethodMetadata
Inherited Members

Remarks

This class is typically used to encapsulate information about a method that can be invoked via JSON-RPC. It provides access to the method's reflection data and any custom attributes relevant to JSON-RPC dispatch.

Instances of this class are generally constructed internally and are not intended to be created directly by consumers.

Properties

Attribute

Gets the JsonRpcMethodAttribute that applies to this method, if any.

public JsonRpcMethodAttribute? Attribute { get; }

Property Value

JsonRpcMethodAttribute

MethodInfo

Gets the MethodInfo for the RPC target method.

public MethodInfo MethodInfo { get; }

Property Value

MethodInfo

MethodShapeAttribute

Gets the MethodShapeAttribute that applies to this method, if any.

public MethodShapeAttribute? MethodShapeAttribute { get; }

Property Value

MethodShapeAttribute

Name

Gets the RPC target name that should invoke this method.

public string Name { get; }

Property Value

string

Methods

ToString()

public override string ToString()

Returns

string