JsonRpcRequest Class

Definition

Describes a method to be invoked on the server.

[System.Runtime.Serialization.DataContract]
public class JsonRpcRequest : StreamJsonRpc.Protocol.JsonRpcMessage
[System.Runtime.Serialization.DataContract]
public class JsonRpcRequest : StreamJsonRpc.Protocol.JsonRpcMessage, StreamJsonRpc.Protocol.IJsonRpcMessageWithId
[<System.Runtime.Serialization.DataContract>]
type JsonRpcRequest = class
    inherit JsonRpcMessage
[<System.Runtime.Serialization.DataContract>]
type JsonRpcRequest = class
    inherit JsonRpcMessage
    interface IJsonRpcMessageWithId
Public Class JsonRpcRequest
Inherits JsonRpcMessage
Public Class JsonRpcRequest
Inherits JsonRpcMessage
Implements IJsonRpcMessageWithId
Inheritance
JsonRpcRequest
Attributes
Implements

Constructors

JsonRpcRequest()

Properties

ArgumentCount

Gets the number of arguments supplied in the request.

ArgumentListDeclaredTypes

Gets or sets a list of Type objects that describe how each element in ArgumentsList is expected by the server to be typed. If specified, this must have exactly the same length as ArgumentsList and contain no null elements.

ArgumentNames

Gets the sequence of argument names, if applicable.

Arguments

Gets or sets the arguments to use when invoking the specified Method. Either an array of arguments or an object whose properties are used in a named arguments object.

ArgumentsArray
Obsolete.

Gets or sets an array of arguments, if applicable.

ArgumentsList

Gets or sets a read only list of arguments, if applicable.

DebuggerDisplay

Gets the string to display in the debugger for this instance.

Id
Obsolete.

Gets or sets an identifier established by the client if a response to the request is expected.

IsNotification

Gets a value indicating whether this is a notification, and no response is expected.

IsResponseExpected

Gets a value indicating whether a response to this request is expected.

Method

Gets or sets the name of the method to be invoked.

NamedArgumentDeclaredTypes

Gets or sets a dictionary of Type objects indexed by the property name that describe how each element in NamedArguments is expected by the server to be typed. If specified, this must have exactly the same size as NamedArguments and contain no null values.

NamedArguments

Gets or sets the dictionary of named arguments, if applicable.

RequestId

Gets or sets an identifier established by the client if a response to the request is expected.

TraceParent

Gets or sets the data for the W3C Trace Contexttraceparent value.

TraceState

Gets or sets the data for the W3C Trace Contexttracestate value.

Version

Gets or sets the version of the JSON-RPC protocol that this message conforms to.

(Inherited from JsonRpcMessage)

Methods

ToString()

Returns a string that represents the current object.

TryGetArgumentByNameOrIndex(String, Int32, Type, Object)

Retrieves an argument for the RPC request.

TryGetTopLevelProperty<T>(String, T)

Retrieves a top-level property from an incoming message that is an extension to the JSON-RPC specification.

(Inherited from JsonRpcMessage)
TryGetTypedArguments(ReadOnlySpan<ParameterInfo>, Span<Object>)

Gets the arguments to supply to the method invocation, coerced to types that will satisfy the given list of parameters.

TrySetTopLevelProperty<T>(String, T)

Sets a top-level property in the message that is an extension to JSON-RPC specification.

(Inherited from JsonRpcMessage)

Applies to