JsonRpc.GetJsonRpcMethodAttribute Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.