Share via


JsonRpc.GetJsonRpcMethodAttribute Method

Definition

Gets the JsonRpcMethodAttribute for a previously discovered RPC method, if there is one.

public StreamJsonRpc.JsonRpcMethodAttribute? GetJsonRpcMethodAttribute (string methodName, ReadOnlySpan<System.Reflection.ParameterInfo> parameters);
member this.GetJsonRpcMethodAttribute : string * ReadOnlySpan<System.Reflection.ParameterInfo> -> StreamJsonRpc.JsonRpcMethodAttribute
Public Function GetJsonRpcMethodAttribute (methodName As String, parameters As ReadOnlySpan(Of ParameterInfo)) As JsonRpcMethodAttribute

Parameters

methodName
String

The name of the method for which the attribute is sought.

parameters
ReadOnlySpan<ParameterInfo>

The list of parameters found on the method, as they may be given to TryGetTypedArguments(ReadOnlySpan<ParameterInfo>, Span<Object>). Note this list may omit some special parameters such as a trailing CancellationToken.

Returns

Applies to